The name of the symbolic link controls that S15* will run before S20* or S40atd will
run before S40cron
The script that runs these is /etc/rc.d/rc and it uses a for loop contruct to iterate
through the files (links) in the given runlevel
directory.
Having read this thread I got curious and used the same construct as a test:
#!/bin/sh
for i in /etc/rc.d/rc3.d/S*; do
echo $i;
done
on my system it generates the following output:
bhughes$ ./testfororder
/etc/rc.d/rc3.d/S10network
/etc/rc.d/rc3.d/S11portmap
/etc/rc.d/rc3.d/S15netfs
/etc/rc.d/rc3.d/S20random
/etc/rc.d/rc3.d/S30syslog
/etc/rc.d/rc3.d/S40atd
/etc/rc.d/rc3.d/S40crond
/etc/rc.d/rc3.d/S45pcmcia
/etc/rc.d/rc3.d/S50inet
/etc/rc.d/rc3.d/S55sshd
/etc/rc.d/rc3.d/S55xntpd
/etc/rc.d/rc3.d/S60lpd
/etc/rc.d/rc3.d/S60nfs
/etc/rc.d/rc3.d/S75keytable
/etc/rc.d/rc3.d/S80sendmail
/etc/rc.d/rc3.d/S85gpm
/etc/rc.d/rc3.d/S85httpd
/etc/rc.d/rc3.d/S90xfs
/etc/rc.d/rc3.d/S91smb
/etc/rc.d/rc3.d/S99linuxconf
/etc/rc.d/rc3.d/S99local
Extremely flexible and simple once you get used to it.
Hope this helps.
Bret
Philippe Moutarlier wrote:
> BTW, I have one question about this organization : how do you control the order in
>which scripts are executed at a given runlevel ?
>
> Thanks
>
> Philippe
>
>
> Wayne Dyer <[EMAIL PROTECTED]> writes:
>
> > Danny wrote:
> > > Assuming I want to install sys progs without the RPMS I was wonder why the
> > > developers of RH have made modifying etc/rc.d so complex.
> > >
> > > Whereas in BSD you have to only create a file called sysprogs.sh to start the
> > > program up.
> >
> > It uses the System V method. It's complex, but it has its advantages.
> >
> > Keep in mind that you can always just throw them into /etc/rc.d/rc.local
> > and you'll get the same effect as using sysprogs.sh, only it will run after
> > all the other stuff in the rc.d directory has run.
> >
> > -W-
> > Aber, Herr Max - die Dame war hier im Zimmer, und da war
> > das Fenster, und wenn sie aus dem Fenster geschaut hätte...
> >
> >
> > --
> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > as the Subject.
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.