LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to kill the autorun on boot in my debian? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-kill-the-autorun-on-boot-in-my-debian-4175575823/)

luofeiyu 03-25-2016 05:10 AM

How to kill the autorun on boot in my debian?
 
Code:

    systemd-analyze blame
    28.288s mysql.service
    25.459s nmbd.service
    24.244s samba-ad-dc.service
    15.315s wicd.service
    11.642s php5-fpm.service
    11.023s apache2.service
    10.531s isc-dhcp-server.service
      8.902s ModemManager.service
      8.745s lightdm.service
      5.280s polkitd.service
      3.734s dnsmasq.service
      2.887s vboxdrv.service
      2.579s avahi-daemon.service

I want to kill mysql.service and nmbd.service and samba-ad-dc.service on the boot,no mysqld and nmbd and samba service as autorun on boot in my debian.
How to get it?

BW-userx 03-25-2016 05:49 AM

change it while you're in Linux. Edit their respective config files. Look for key words like startup= and such.

michaelk 03-25-2016 06:06 AM

To start/stop services

systemctl start service_name or systemctl stop service_name

To enable/disable services from running at boot

systemctl enable service_name or systemctl disable service_name

luofeiyu 03-25-2016 08:29 AM

systemctl start service_name or systemctl stop service_name,but you have login into debian,when you login into ,all the service have started,it is sure that all of themn can be killed.
But what i want is not to start them at the booting stage.

michaelk 03-25-2016 08:32 AM

Did you read my entire post?

systemctl disable service_name

luofeiyu 03-28-2016 11:10 PM

It result in new problems for me.

systemctl disable dnsmasq.service

Synchronizing state for dnsmasq.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dnsmasq defaults
insserv: warning: current start runlevel(s) (empty) of script `dnsmasq' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dnsmasq' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d dnsmasq disable
insserv: warning: current start runlevel(s) (empty) of script `dnsmasq' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dnsmasq' overrides LSB defaults (0 1 6).

systemctl disable isc-dhcp-server.service

Synchronizing state for isc-dhcp-server.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d isc-dhcp-server defaults
Executing /usr/sbin/update-rc.d isc-dhcp-server disable
insserv: warning: current start runlevel(s) (empty) of script `isc-dhcp-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `isc-dhcp-server' overrides LSB defaults (0 1 6).

sgosnell 03-29-2016 12:00 AM

You do not want to disable everything. If nothing runs, nothing works. Those are services you don't want to disable. You will never get an instantaneous boot, because nothing would be running.

BW-userx 03-29-2016 08:07 AM

why can't he just go into the respective config files and remove or change the startup on boot state to false?

so that the state of them would not actually be disabled, only that they have yet to be started. should that not cut down on a conflict?

michaelk 03-29-2016 08:58 AM

It is a warning not an error. Just stating the current settings are different from the configuration defaults.


All times are GMT -5. The time now is 08:50 AM.