update-rc.d(8)

NAME
update-rc.d - install and remove System-V style init script links

SYNOPSIS
update-rc.d <basename> remove

update-rc.d <basename> defaults [ <codenumber> | <startcodenumber> <stopcodenumber> ]

update-rc.d <basename> start | stop <codenumber> <runlevel> [ <runlevel> [ <runlevel> [...]]] .

DESCRIPTION
This manual page explains the Debian update-rc.d System-V init script link utility. It should be used when installing and removing init scripts on a Debian system.

REMOVING SCRIPTS
When invoked with the remove option, update-rc.d removes the script and links to the script for the package <basename>. It first finds and removes the script in /etc/init.d/ and then removes all links to the script in /etc/rc[0123456].d/.

INSTALLING SCRIPTS
When run with either the defaults, start, or stop options, update-rc.d makes links pointing to the script in /etc/init.d/. The script must be installed before update-rc.d is run. The <codenumber> arguments specify the order in which the script will be executed. When init changes runlevels it executes the scripts in the order of their codenumber from lowest to highest. The <runlevel> arguments specify the runlevels that the script will be run in. As many as seven runlevels (0-6) may be specified. The last runlevel must be followed by a period. When invoked with the defaults option the start runlevels are 2 3 4 5 and the stop runlevels are 0 1 2 3 4 5 6. If neither <codenumber> or <startcodenumber> and <stopcodenumber> are specified, then the stop and start codenumbers default to 20.

FILES
/etc/init.d/ /etc/rc[0123456].d/

SEE ALSO
init(1), inittab(1),