LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2016, 06:10 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Rep: Reputation: Disabled
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?
 
Old 03-25-2016, 06:49 AM   #2
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,141

Rep: Reputation: Disabled
change it while you're in Linux. Edit their respective config files. Look for key words like startup= and such.
 
Old 03-25-2016, 07:06 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
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
 
1 members found this post helpful.
Old 03-25-2016, 09:29 AM   #4
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-25-2016, 09:32 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Did you read my entire post?

systemctl disable service_name
 
Old 03-29-2016, 12:10 AM   #6
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Original Poster
Rep: Reputation: Disabled
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).
 
Old 03-29-2016, 01:00 AM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 276Reputation: 276Reputation: 276
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.
 
Old 03-29-2016, 09:07 AM   #8
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,141

Rep: Reputation: Disabled
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?

Last edited by BW-userx; 03-29-2016 at 09:08 AM.
 
Old 03-29-2016, 09:58 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
It is a warning not an error. Just stating the current settings are different from the configuration defaults.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] autorun programs at boot, not just login: dhclient, /etc/init.d/isc-dhcp3server, etc. fluffymuffins Debian 3 09-08-2010 03:04 PM
How to autorun commands at boot? tansj Linux - Newbie 6 01-14-2010 11:46 PM
autorun at boot anthjaz Linux - General 10 05-06-2004 09:02 PM
boot/startup/autorun commands awejevlen Linux - Newbie 6 05-04-2004 07:52 AM
Debian on dual-boot - will upgrade to SID kill MBR? seanb Linux - Newbie 6 02-17-2004 02:02 AM


All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration