]> git.donarmstrong.com Git - debhelper.git/blob - dh_installinit.1
r192: Initial Import
[debhelper.git] / dh_installinit.1
1 .TH DH_INSTALLINIT 1 "" "Debhelper Commands" "Debhelper Commands"
2 .SH NAME
3 dh_installinit \- install init scripts into package build directories
4 .SH SYNOPSIS
5 .B dh_installinit
6 .I "[debhelper options] [--init-script=scriptname] [-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 (or debian/package.init.d for backwards
16 compatibility with debstd) exists, then it is installed into
17 etc/init.d/package in the package build directory, with "package" replaced
18 by the packagename. (You may use debian/init for the first binary package
19 listed in the control file.)
20 .SH OPTIONS
21 .TP
22 .B debhelper options
23 See
24 .BR debhelper (1)
25 for a list of options common to all debhelper commands.
26 .TP
27 .B \-n, \--noscripts
28 Do not modify postinst/postrm/prerm scripts.
29 .TP
30 .B \-r, \--no-restart-on-upgrade
31 Do not restart daemon on upgrade.
32 .TP
33 .B \-d, \--remove-d
34 Remove trailing "d" from the name of the package, and use the result for the
35 filename the init script is installed as in etc/init.d/ . This may be useful
36 for daemons with names ending in "d". (Note: this takes precedence over
37 the --init-script parameter described below.)
38 .TP
39 .B \-uparams, \--update-rcd-params=params
40 Pass "params" to 
41 .BR update-rc.d (8)
42 If not specified, "defaults" will be passed to
43 .BR update-rc.d (8)
44 .TP
45 .B \--init-script=scriptname
46 Use "scriptname" as for the filename the init script is installed as in
47 etc/init.d/ . This is useful if you need to have an init script with a name
48 different from the package's name.
49 .SH ENVIRONMENT
50 See
51 .BR debhelper (1)
52 for a list of environment variables that affect all debhelper commands.
53 .SH "SEE ALSO"
54 .BR debhelper (1),
55 .BR update_rc.d (8)
56 .SH AUTHOR
57 Joey Hess <joeyh@master.debian.org>