[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-user
Subject:    Re: /etc/init.d/ - add/remove services
From:       Thomas Hood <jdthood () yahoo ! co ! uk>
Date:       2004-01-31 21:10:46
Message-ID: 1075583446.1859.2697.camel () thanatos ! hubertnet
[Download RAW message or body]

Note that the expectation of the System V init system is
that every service have either an S or a K symlink in each
runlevel.  If there is no symlink for a service in a particular
runlevel then the behavior of sysv's invoke-rc.d is undefined
for that service in that runlevel.  Methods of shutting off
services must take that into account.

Suppose you have service foo that is S20 in runlevel 2 and
you want to shut it off.  You should do something like:

    /etc/rc2.d/$ mv S20foo K80foo_originallyS20

As someone has already pointed out, update-rc.d is intended for
use by maintainer scripts.  It allows maintainer scripts to 
work independently of which init system is in use, whether it
is the System V init system, file-rc or some other.  The
local administrator need not use update-rc.d to change sysv
symlinks.

-- 
Thomas Hood <jdthood@yahoo.co.uk>


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic