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 12-22-2003, 10:42 AM   #1
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Rep: Reputation: 30
how to stop programs i don't need starting up when booting?


I read in a thread here somewhere that someone had managed to tune linux to boot up in 20 seconds... I was wondering where and how do i do this myself. Im running rh9, please bear in mind im new to linux....
Thank you
 
Old 12-22-2003, 10:48 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Edit your startup scripts in /etc/initd if your using Redhat, I think that is the correct directory now. If not usually there are links in /etc that will point to each runlevel, you will see like /etc/rc.0-rc.6
 
Old 12-22-2003, 10:51 AM   #3
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Redhat probably has enabled several services on startup that you won't need running on your system. You can stop unneccessary services from loading at boot time with Redhat's Service Configuration utility. You should find an icon for it somewhere under your System or Utilities menu. Chapter 14 of the RH 9 User's Guide has the specifics.

If you aren't sure which services you do or don't need, tell us what service are currently enabled and also what functions your machine performs (regular desktop box, web server, FTP server, etc.). The functions you want your machine to perform will determine what services you do need to activate at boot.
 
Old 12-22-2003, 11:16 AM   #4
Jestrik
Member
 
Registered: Dec 2003
Location: Hampshire, UK
Distribution: gentoo, Debian Sarge, Slack 9.1
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by trickykid
Edit your startup scripts in /etc/initd if your using Redhat, I think that is the correct directory now. If not usually there are links in /etc that will point to each runlevel, you will see like /etc/rc.0-rc.6
Do i just delete the files in that dir?
 
Old 12-22-2003, 11:57 AM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
You'll notice that the filenames of the scripts in initd (and/or the symlinks to them in each rcx.d directory) will begin with "S" or "K". The scripts beginning with S start services/processes and the scripts beginning with K kill services/processes. To keep any given startup script from executing, you don't even have to delete it- simply change the first letter of the script's name to something other than an upper-case "S". Just changing it to a lower-case S will even do the trick. That way, if you ever need to activate the script in the future, you'll easily be able to identify it, and simply change the "s" back to "S" to have it start at boot.

 
Old 12-22-2003, 12:03 PM   #6
shaggystyle
Member
 
Registered: Dec 2003
Location: Louisville, KY
Distribution: Gentoo (desktop), Mandrake 10.0 (server)
Posts: 39

Rep: Reputation: 15
If you want an easy graphical approach Webmin has a list of all processes/services and startup options under System->Boot
 
  


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
Stop X from starting automatically dafatdude Linux - Software 1 07-26-2005 10:30 PM
Stop eth0:1 from starting on boot magicdev Linux - Networking 3 09-13-2004 09:46 AM
How do you stop a daemon from starting at bootup?? rberry88 Fedora 6 02-18-2004 02:44 PM
xscreensaver: how do I stop it from starting PionexUser Linux - General 9 09-15-2003 12:00 AM
How to stop a service from starting in slack benutne Linux - Newbie 4 02-25-2003 10:50 PM


All times are GMT -5. The time now is 08:31 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