LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Matthew Tippett <matthew.tippett@dsto.defence.gov.au>
  To  : Peter McCarthy <mccarthy@mail.austasia.net>
  Date: Tue, 29 Jul 1997 10:14:43 +0930

Re: init scripts

Peter McCarthy wrote:
> 
> Hi how do the damn init scripts in Red Hat work.  My goal is to get
> named running.  It apears in the rc.initd dir but what is the
> mechanism to get it off the ground at boot ?
> 
Firstly, LinuxSA did a talk on this about two weeks ago.
For the notes check out 
	http://www.linuxsa.org.au/meetings/1997-07/init/


Secondly, I can quickly describe what how to set things up.

/etc/rc.d/init.d contains most (if not all) of the service scripts.
Each script accepts one paramater (either start or stop).
For each run level there is a directory with a number of symbolic
links to the scripts in /etc/rc.d/init.d.  
Each script will start with a K or S followed by a number, and then
the script name.  (eg S15httpd -> ../init.d/httpd).

When you enter a run level (say 3 for example) it will run all
the scripts in /etc/rc.d/rc3.d that start with K in numerical order 
(K15httpd) and then (K21smbd) with stop as the paramater.  (K = Kill).
It then runs all the scripts (in numerical order) that starts with a S
(S = Start).

Through this method you can specify what is started and what is stopped
when you enter each run level.

As a guideline all (bar halt or reboot) should have links in
/etc/rc.d/rc0.d
(halt) and /etc/rc.d/rc6.d (reboot) that Kill the services. 
/etc/rc.d/rc1.d
(single user mode) should have only the barest services. 
/etc/rc.d/rc2.d 
(Multi-user - NO NFS), /etc/rc.d/rc3.d (Full Multi-user) and
/etc/rc.d/rc5.d
(X11 - xdm login) should have most services running in it.

Under redhat there is a program called /usr/X11R6/bin/tksysv which lets
you do
it graphically.

Hope this helps.

Matt


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page