Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-09-2003, 09:15 AM   #1
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Speeding up boot by stopping unnecessary services

Hi there,

I am fairly new to Linux, but so far I have been relatively successful in getting stuff to work thanks entirely to the help on the Internet and on LQ in particular.

I read in Linux Format this month that it could quicken my boot time by turning off unnecessary services (I suppose services are really daemons, are they?).

In the magazine it mentions MySQL, Apache, Samba and NFS. I don't host a web server on my computer, so I don't need Apache, MySQL - I dont' think I will need. NFS - I'm not sure what it is.

Anyway, my question: how does one turn off these service/daemons? Is it in the kernel configuration?

Old 09-09-2003, 09:25 AM   #2
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Each S symlink in an /etc/rc.d subdirectory is used to start a service at a particular run-level on boot up - ( these S symlinks point to the actual services in /etc/rc.d/init.d ) - if you dont want a service to start on boot up then remove the S symlink from the relevant run level directory you use - the relevant directory for run level 5 ie graphical mode is /etc/rc.d/rc5.d - so just create a directory to hold the removed services (just in case you want to put them back at a later date) then use the mv command to move your chosen symlinks into this newly created directory - then on next boot up the relevant services wont start as desired - if you ever want to restart those services on boot up then simply move the relevant symlinks back to /etc/rc.d/rc5.d or whatever run-level directory you want.

An example - stopping the Random number generator on boot up

create a new directory as root user in a shell.

mkdir /etc/removed_services


mv /etc/rc.d/rc5.d/S20random /etc/removed_services

this symlink is now not in the run-level 5 directory hence the service wont start on boot up.

Last edited by Skyline; 09-09-2003 at 09:29 AM.


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
Which services are unnecessary? revenant Linux - Security 4 03-29-2004 12:43 AM
Unnecessary Services/Daemons loaded at boot t3___ Linux - Newbie 1 02-27-2004 06:22 PM
Removing unnecessary services and users/groups Jiggy Linux - Security 4 11-18-2003 02:11 PM
Speeding up boot by stopping unnecessary services hamish Linux - Software 2 09-09-2003 04:11 PM
stopping services? piglingz Linux - Software 3 06-24-2003 05:26 PM > Forums > Linux Forums > Linux - Software

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

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