On Sun, 25 Jun 2000, Anurag Jalan wrote:
> Hi all,
>
> On what basis are Symlinks under the rc2.d, rc3.d directory named ? Eg why
> should a link be name S91mysql or K20firewall , S20firewall .. Whats the
> logic behind the naming convention ?
>
> Regards
>
> Anurag
>
The programs are started or stopped in the order of the names. S01 comes
before S09 when starting, and K05 comes before K25 when stopping. (S is
for Start, and K is for Kill or stop.) Files not starting with S or K are
ignored.
When entring a run level, first all the files starting with K are run,
then all the files starting with S are run.
Now for managing the symlinks, there is a nice program called chkconfig
that will create the symlinks for any properly formatted file in
/etc/rc.d/init.d, as well as disabling any service. It uses the
# chkconfig: LLLL Start Stop where LLLL are the levels to run the service,
Start is the value for the S link, and Stop is the value for the K link.
ie for sendmail, the line is:
# chkconfig: 2345 80 30
Run when at runlevels 2, 3, 4, and 5.
S80sendmail
K30sendmail
man chkconfig information on what it will do.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.