On Sat, 3 Feb 2001, Sridhar Ranganathan wrote:
> Hi People
>
> Where can I find DETAILED information about the contents of rc.d?
> I just want to understand the whole process.
> I tried SAG and NAG, but no help. Any pointers?
HI
depends on u'r distro actually. Suse and redhat both have different
file structures. suse insists on putting all executables into /sbin and creating
a link in /etc, and in redhat 7.0 there is a change to make /etc/ the parent
directory, instead of /etc/rc.d.And so on for others...caldera looks to me
like a mess.
As for u'r question , u need to trace it. for instance, consider redhat.
common sense tells me , any of the rc.d things are related to init process. So
check the inittab for any of runlevel executables [ hint: RTFM inittab, init].
Then look for a line which says
l0:1:wait:/etc/rc.d/rc 0... and so on till rc 6. which means all these
are executed on the specified runlevels. So check the script /etc/rc.d/rc and
trace it. then u'll know how scripts in /etc/rc.d/init.d/* scripts are execurted
by calling processes in /etc/rc.d/rc[0-6].d/ directories by appending an S to
start and K to stop.
If u relaly want to understand how they work, put set -x in all the
shell scripts that u find ( including /etc/rc.d/init.d/functions !) and watch
all the nonsense on u'r scrreeen.
regards
omicron
--
******
An optimist sees light at the end of every tunnel.
A pessimist fears it might be of an incoming train.
[EMAIL PROTECTED] omicron.symonds.net
C O G I T O E R G O S U M
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/