Penguin
Blame: update-rc.d(8)
EditPageHistoryDiffInfoLikePages
Annotated edit history of update-rc.d(8) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 JohnMcPherson 2 update-rc.d - install and remove System-V style init script links
1 perry 3
4 !!SYNOPSIS
2 JohnMcPherson 5 __update-rc.d__ [[ ''-n'' ] [[ ''-f'' ] ''name'' __ remove__
1 perry 6
2 JohnMcPherson 7 __update-rc.d__ [[ ''-n'' ] ''name'' __ defaults__ [[ ''NN'' | ''NN-start'' ''NN-stop'' ]
1 perry 8
2 JohnMcPherson 9 __update-rc.d__ [[ ''-n'' ] ''name'' __start__ | __stop__ ''NN runlevel runlevel '' ... __.__ __start__ | __stop__ ''NN runlevel runlevel '' ... __.__ ...
1 perry 10
11 !!DESCRIPTION
2 JohnMcPherson 12 __update-rc.d__ automatically updates the System V style init script links __/etc/rc__''runlevel''__.d/__''NNname'' to scripts __/etc/init.d/__''name''. These are run by __init__ 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__ to decide which order to run the scripts in.
1 perry 13
2 JohnMcPherson 14 This manpage documents only the usage and behaviour of __update-rc.d__. For a discussion of the System V style init script arrangements please see init(8) and the ''Debian Policy Manual''.
1 perry 15
16 !!INSTALLING INIT SCRIPT LINKS
2 JohnMcPherson 17 When run with either the __defaults__, __start__, or __stop__ options, update-rc.d makes links __/etc/rc__''runlevel'' __.d/[[SK]__''NNname'' pointing to the script __/etc/init.d/__''name''.
1 perry 18
2 JohnMcPherson 19 If any files __/etc/rc__''runlevel''__.d/[[SK]??__''name'' already exist then __update-rc.d__ does nothing. This is so that the system administrator can rearrange the links, provided that they leave at least one link remaining, without having their configuration overwritten.
1 perry 20
2 JohnMcPherson 21 If __defaults__ is used then __update-rc.d__ will make links to start the service in runlevels __2345__ and stop the service in runlevels __016__. By default all the links will have sequence code 20, but this can be overridden by supplying one or two ''NN'' arguments; one argument overrides the sequence code for both start and stop links whereas of two arguments the first overrides the code for start links and the second that for stop links.
1 perry 22
2 JohnMcPherson 23 Instead of __defaults__ the runlevels in which to start and stop the service may be specified explicitly using a series of sets of arguments:
1 perry 24
2 JohnMcPherson 25 Each of these sets starts with an argument __start__ or __stop__ to specify whether start or stop links are to be created by that set. Then follows ''NN'', the sequence code number for all the links in the set, and one or more runlevel numbers as a single argument each. The set is terminated by an argument __.__ (a single full stop).
1 perry 26
2 JohnMcPherson 27 When explicit specification, rather than __defaults__, is used there will usually be one __start__ and one __stop__ set. If different sequence codes are required in different runlevels then several __start__ sets or several __stop__ sets may be specified.
1 perry 28
2 JohnMcPherson 29 The script __/etc/init.d/__''name'' must exist before __update-rc.d__ is run to create the links.
1 perry 30
31 !!REMOVING SCRIPTS
2 JohnMcPherson 32 When invoked with the ''remove'' option, update-rc.d removes any links in the __/etc/rc__''runlevel''__.d__ directories 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. Any files in the __/etc/rc__''runlevel''__.d__ directories that are not symbolic links to the script __/etc/init.d/__''name'' will be left untouched.
1 perry 33
34 !!OPTIONS
35
2 JohnMcPherson 36 ;''-n'' : Don't do anything, just show what we would do.
37 ;''-f'' : Force removal of symlinks even if __/etc/init.d/__''name'' still exists.
1 perry 38
39 !!EXAMPLES
40 Insert links using the defaults:
2 JohnMcPherson 41 __update-rc.d foobar defaults__
1 perry 42
2 JohnMcPherson 43 Equivalent command using explicit argument sets:
44 __update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .__
1 perry 45
46
47
48 !!BUGS
49
50
2 JohnMcPherson 51 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.
52
1 perry 53 !!FILES
54
2 JohnMcPherson 55 ;__/etc/init.d/__ : The directory containing the actual init scripts.
56 ;__/etc/rc?.d/__ : The directories containing the links used by __init__ and managed by __update-rc.d__ .
57 ;__/etc/init.d/skeleton__ : Model for use by writers of __init.d__ scripts.
1 perry 58
59 !!SEE ALSO
2 JohnMcPherson 60 ''Debian Policy Manual'',
61 __/etc/init.d/skeleton__,
62 init(8).
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 11 times)