The best way to figure out which startup scripts will run for your for your distribution, and where they are, is to look at the /etc/inittab file. Look for the default runlevel line:


[EMAIL PROTECTED]:/etc$ grep default inittab
# The default runlevel.
id:2:initdefault:

This will tell you which runlevel your system will boot up into. Your other option is to type runlevel and see which runlevel your system is in:

[EMAIL PROTECTED]:/etc$ /sbin/runlevel
N 2

the /etc/inittab says what to run for any particular run level:

[EMAIL PROTECTED]:/etc$ grep l2 inittab
l2:2:wait:/etc/init.d/rc 2

This simply says to call the script "/etc/init.d/rc 2". This script then runs all of the kill scripts (files beginning with 'K') located in the current runlevel's folder, and then proceeds to run all of the startup scripts (files beginning with 'S') located in the new runlevel's folder.

For example, if you were running at runlevel 5 and then switched to runlevel 2, with the init command, your system would first run all of the kill scripts (files beginning with 'K') in your /etc/rc5.d/ folder. Then it would proceed to run all of the startup scripts (files beginning with 'S') located in the /etc/rc2.d. folder. Sometimes the rcX.d folders are located in /etc/init.d/, such as with Suse.

This is probably more then what you were looking for, but I had a similar question before.

Kenneth





.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to