]> git.donarmstrong.com Git - debhelper.git/blob - dh_installinit.1
6a2ab3211dadbea94b67ed624b59e6162cda9f11
[debhelper.git] / dh_installinit.1
1 .TH DH_INSTALLINIT 1
2 .SH NAME
3 dh_installinit \- install init scripts into package build directories
4 .SH SYNOPSIS
5 .B dh_installinit
6 .I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir] [-n] [-r] [-d] [-uparams]"
7 .SH "DESCRIPTION"
8 dh_installinit is a debhelper program that is responsible for installing
9 init scripts into package build directories. 
10 .P
11 It also automatically generates the postinst and postrm and prerm commands 
12 needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init
13 scripts.
14 .P
15 If a file named debian/package.init exists, then it is installed into
16 etc/init.d/package in the package build directory, with "package" replaced
17 by the packagename. (You may use debian/init for the first binary package
18 listed in the control file.)
19 .SH OPTIONS
20 .TP
21 .B \-v
22 Verbose mode; show all commands that modify the package build directory.
23 .TP
24 .B \-a
25 Install init scripts into all architecture dependent packages.
26 .TP
27 .B \-i
28 Install init scripts into all architecture independent packages.
29 .TP
30 .B \-ppackage
31 Install init scripts into the package named "package".
32 .TP
33 .B \-Ptmpdir
34 Use "tmpdir" for package build directory. 
35 .TP
36 .B \-n
37 Do not modify postinst/postrm/prerm scripts.
38 .TP
39 .B \-r
40 Do not restart daemon on upgrade.
41 .TP
42 .B \-d
43 Remove trailing "d" from the name of the package, and use the result for the
44 filename the init script is installed as in etc/init.d/ . This may be useful
45 for daemons with named ending in "d".
46 .TP
47 .B \-uparams
48 Pass "params" to 
49 .BR update-rc.d (8)
50 If not specified, "default" will be passed to
51 .BR update-rc.d (8)
52 .SH NOTES
53 The
54 .B \-a
55 .B \-i
56 and
57 .B \-p
58 arguments are cumulative. If none are specified, then all packages listed in
59 the control file will be effected.
60 .P
61 Due to a bug in
62 .BR getopt (1)
63 , you cannot really text with spaces in it to the -u flag. However, this bug
64 has been worked around, and it should appear to work. What it's really doing
65 is looking at any parameters passed that are not known flags, and appending
66 that text onto the end of the text specified by the -u flag.
67 .SH ENVIRONMENT
68 .TP
69 .I DH_VERBOSE
70 Enables verbose mode
71 .SH "SEE ALSO"
72 .BR /usr/doc/debhelper/README
73 .SH AUTHOR
74 Joey Hess <joeyh@master.debian.org>