auto-starting daemons on startup

Matthew 'Fringe' Duhan yellowdog-general@lists.terrasoftsolutions.com
Tue May 21 01:16:01 2002


On Tue, 21 May 2002, Robert Brandtjen wrote:
>On Monday 20 May 2002 11:40 pm, Sam Moore wrote:
>> If you're interested in the full-on Sys-V Init treatment, that's a
>> bigger topic...
>
>well, here's a slightly harder one - how can you "reorder" the boot sequence?
>what if I want one daemon to load at the very end, but it loads much earlier
>now?

This one's actually pretty easy.
If you look in /etc/rc.d, you'll see several directories, numbered rc0.d
through rc6.d, for the various runlevels that the system can boot into.
Generally rc3.d is for a text (non-X) boot and rc5.d for the graphical
boot. search google or try here:
http://www.redhat.com/support/resources/tips/Boot-Process-Tips/Boot-Process-Tips-3.html
for what the others are.
Inside each directory are symbolic links to the actual scripts in
/etc/rc.d/init.d (../init.d) with a letter and number in front. K stands for
Kill and S for Start. The number is the order (out of 100) that the sequence
starts in. So for example if in rc3.d you had mysql (linked as S75mysqld)
starting before apache (linked as S85httpd) and wanted apache to start
first, remove the symbolic link S85httpd and in its place create a symbolic
link named S72httpd.
Alternatively, you could use the chkconfig command (man chkconfig for
directions).

Hope this helps,
Matt
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Matthew Duhan         fringe@shore.net          http://www.fringenet.net
When I want my opinions I'll ask me for them.
WWW, HTML, VR, MOO, HRSFA, TMBG, DNA--any more initials and I'll go insane
I didn't know the true meaning of fear, until I kissed Becky.
                  - a rather serious moment in Invasion of the Body Snatchers