Chandrashekar Babu posted in linux-india-help:
> However, the way system startup scripts work - vary from one distro to
> another. The /etc/inittab file thus will look a bit different (the names and
> locations of startup scripts vary, runlevel schemes vary). Though the format
> /syntax of /etc/inittab remains the same. 

True, but broadly speaking, there are two approaches - the BSD way and
the SysV way.

In the BSD method, you have one big shell script which takes care of
starting up various services. Said script would be a big series of:

if [ startfubar = true ]; then
   start service fubar
fi

The order/dependency of various services is ensured by putting this
if-fi block in the correct place in this script. Examples are *BSDs and
certain Linux distros.

In the SysV method, each service that need to be started has an individual
startup script in usually /etc/init.d and dependency is ensured by adding
a number to the script name (so that "ls *" will list the scripts in
the exact order you need them to be executed). Examples are Solaris
and Redhat.

What is order/dependency? sendmail needs a working DNS cache - thus the
sendmail service need to initialize ONLY after the DNS cache service
is up (assuming the cache is local).

Binand

-- 
Hanlon's Razor: Never attribute to malice that which can be adequately
explained by stupidity.
Bruce's Razor: Never attribute to stupidity that which can be adequately
explained by Microsoft funding.


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to