Penguin
Blame: dh_installinit(1)
EditPageHistoryDiffInfoLikePages
Annotated edit history of dh_installinit(1) version 1 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 DH_INSTALLINIT
2 !!!DH_INSTALLINIT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 NOTES
8 SEE ALSO
9 AUTHOR
10 ----
11 !!NAME
12
13
14 dh_installinit - install init scripts into package build directories
15 !!SYNOPSIS
16
17
18 __dh_installinit__ [[''debhelper options'']
19 [[__--init-script=__''scriptname''] [[__-n__]
20 [[__-r__] [[__-d__] [[__--__
21 ''params'']
22 !!DESCRIPTION
23
24
25 dh_installinit is a debhelper program that is responsible
26 for installing init scripts and associated defaults files
27 into package build directories.
28
29
30 It also automatically generates the postinst and postrm and
31 prerm commands needed to set up the symlinks in /etc/rc*.d/
32 and to start and stop the init scripts.
33
34
35 If a file named debian/package.init exists, then it is
36 installed into etc/init.d/package in the package build
37 directory, with ``package'' replaced by the package
38 name.
39
40
41 If a file named debian/package.default exists, then it is
42 installed into etc/default/package in the package build
43 directory, with ``package'' replaced by the package
44 name.
45
46
47 Historically this program generates postrm and prerm
48 commands that run the init scripts by hand. In V4 mode, it
49 uses the invoke-rc.d program instead. See
50 debhelper(1) for details about V4 mode. If you decide
51 to use this, you should make your package depend on sysvinit
52 (
53 ''
54 !!OPTIONS
55
56
57 __-n__, __--noscripts__
58
59
60 Do not modify postinst/postrm/prerm scripts.
61
62
63 __-r__, __--no-restart-on-upgrade__
64
65
66 Do not restart daemon on upgrade.
67
68
69 __-d__, __--remove-d__
70
71
72 Remove trailing ``d'' from the name of the package, and use
73 the result for the filename the init script is installed as
74 in etc/init.d/ , and the default file is installed as in
75 etc/default/ . This may be useful for daemons with names
76 ending in ``d''. (Note: this takes precedence over the
77 --init-script parameter described below.)
78
79
80 __-u__''params''
81 __--update-rcd-params=__''params''
82
83
84 __--__ ''params''
85
86
87 Pass ``params'' to ''update-rc.d''(8). If not specified,
88 ``defaults'' will be passed to
89 ''update-rc.d''(8).
90
91
92 __--init-script=__''scriptname''
93
94
95 Use ``scriptname'' as for the filename the init script is
96 installed as in etc/init.d/ (and also use it as the filename
97 for the defaults file, if it is installed). This is useful
98 if you need to have an init script with a name different
99 from the package's name. Note that if you use this
100 parameter, dh_installinit will look to see if a file in the
101 debian/ directory exists that looks like
102 ``package.scriptname'' and if so will install it as the init
103 script in preference to the files it normally installs. This
104 feature is really only useful if you need a single package
105 to install more than one init script.
106 !!NOTES
107
108
109 Note that this command is not idempotent. ``dh_clean -k''
110 should be called between invocations of this command.
111 Otherwise, it may cause multiple instances of the same text
112 to be added to maintainer scripts.
113 !!SEE ALSO
114
115
116 debhelper(1)
117
118
119 This program is a part of debhelper.
120 !!AUTHOR
121
122
123 Joey Hess
124 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.