NAME¶update-rc.d - modify runlevel.conf to manage System-V init scripts
SYNOPSIS¶update-rc.d [-n] [-f] name remove
update-rc.d [-n] name defaults [NN | NN-start NN-stop]
update-rc.d [-n] name start|stop NN runlevel runlevel ... . start|stop NN runlevel runlevel ... . ...
DESCRIPTION¶update-rc.d automatically updates /etc/runlevel.conf(5), a config file, which simulates the System V style init script links in only one text file. These are run by init(8) when changing runlevels and are generally used to start and stop system services such as daemons. runlevel is one of the runlevels supported by init, 0123456789S, and NN is the two-digit sequence code used by init(8) to decide which order to run the scripts in. This manpage documents only the usage and behaviour of update-rc.d(8). For a discussion of the System V style init script arrangements please see init(8), runlevel.conf(5), and the Debian Policy Manual.
INSTALLING INIT SCRIPTS¶When run with either the defaults, start, or stop options, update-rc.d adds a line to /etc/runlevel.conf pointing to the script /etc/init.d/name.
REMOVING SCRIPTS¶When invoked with the remove option, update-rc.d removes any lines from /etc/runlevel.conf pointing to the script /etc/init.d/name. The script must have been deleted already - update-rc.d checks for this. update-rc.d is usually called from a package's post-removal script when that script detects that its first argument is purge, indicating that the user has requested the configuration for the package to be removed.
- Don't do anything, just show what we would do.
- Force removal of symlinks even if /etc/init.d/name still exists.
EXAMPLES¶Insert line into runlevel.conf using the defaults:
update-rc.d foobar defaultsEquivalent command using explicit argument sets:
update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .
BUGS¶There should be a way for the system administrator to specify at least the default start and stop runlevels to be used by defaults and possibly to override other things as well.
- The directory containing the actual init scripts.
- The file containing the information used by init and managed by update-rc.d.
- Model for use by writers of init.d scripts.
SEE ALSO¶Debian Policy Manual,
|March 2004||Debian Project|