Re: SysV Init

2001-02-04 Thread Leonard Leblanc
In your /etc directory there are a number of directorys called rcN.d where
'N' is a number indicating the runlevel.  In each of those directorys there
are a number of symbolic links which point to scripts (usually in
/etc/init.d/  - at least that's where i keep them) which start with either
'S' or 'K' which indicate whether it will be started or killed and a number
which indicates which order it is run in.

Also, I believe there is a common way to write the scripts which allow you
to pass either start,stop,restart (or maybe some others) which will allow
the symbolic links to operate properly (for being started and stopped
anyway).  I'm not positive about that though.  Does someone wanna elaborate
on this

Leonard Leblanc



- Original Message -
From: Stephen Robertson [EMAIL PROTECTED]
To: debian-user@lists.debian.org
Sent: Friday, February 02, 2001 4:13 PM
Subject: SysV Init


 I'm fairly new to Debian and still learning the system.  What is the
 accepted method of configuring which services are stopped and started in

 each run level, and how can I add my own commands to the Init scripts.
 RedHat provided a file called rc.local for adding user commands.  Is
 there a similar method in Debian?





 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]





Re: SysV Init

2001-02-03 Thread Jim

Hi,

The scripts are stored in /etc/init.d
Each runlevel has its own directory e.g. /etc/rc0.d, /etc/rc1.d etc. In 
the runlevel dirs there are a load of symlinks to the scripts in 
/etc/init.d. The format of the filename is:


Sxxscriptname to run a script with the start argument when 
entering the level
Kxxscriptnameto run a script with the stop argument when 
entering leaving the level


xx is a number which tells init which order to run the links, lowest 
first, scriptname is the name of the script in /etc/init.d, I don't 
believe that matching the name is a requirement as I think that init 
only cares about the first three chars, just common sense for 
administration.


Jim

p.s. Please cc me in on a reply as well as the list

Stephen Robertson wrote:


I'm fairly new to Debian and still learning the system.  What is the
accepted method of configuring which services are stopped and started in

each run level, and how can I add my own commands to the Init scripts.
RedHat provided a file called rc.local for adding user commands.  Is
there a similar method in Debian?









RE: SysV Init

2001-02-02 Thread Sean 'Shaleh' Perry

On 03-Feb-2001 Stephen Robertson wrote:
 I'm fairly new to Debian and still learning the system.  What is the
 accepted method of configuring which services are stopped and started in
 
 each run level, and how can I add my own commands to the Init scripts.
 RedHat provided a file called rc.local for adding user commands.  Is
 there a similar method in Debian?
 

man update-rc.d

You need to add a /etc/init.d/local script.  Debian does not ship one.

As for what starts and stops, debian basically assumes you live in run level 3.
 If you install a package, it gets run at boot.  uninstall things you do not
want.  Another choice is to added configuration to /etc/defaults/foo and make
/etc/init.d/foo read that file.

update-rc.d can reassign boot priorities and what runlevels what gets run at.