]> git.donarmstrong.com Git - debhelper.git/blob - dh_installinit.1
r348: * Fixes for perl 5.6.
[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] -- [params]"
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 .TP
41 .B \-\- params
42 Pass "params" to 
43 .BR update-rc.d (8)
44 If not specified, "defaults" will be passed to
45 .BR update-rc.d (8)
46 .TP
47 .B \--init-script=scriptname
48 Use "scriptname" as for the filename the init script is installed as in
49 etc/init.d/ . This is useful if you need to have an init script with a name
50 different from the package's name. Note that if you use this parameter,
51 dh_installinit will look to see if a file in the debian/ directory exists
52 that looks like "scriptname" or "package.scriptname" and if so will install
53 it as the inist script in preference to the files it normally installs. This
54 feature is really only useful if you need a single package to install more
55 than one init script.
56 .SH ENVIRONMENT
57 See
58 .BR debhelper (1)
59 for a list of environment variables that affect all debhelper commands.
60 .SH NOTES
61 Note that this command is not idempotent. "dh_clean -k" should be called
62 between invocations of this command. Otherwise, it may cause multiple
63 instances of the same text to be added to maintainer scripts.
64 .SH "SEE ALSO"
65 .BR debhelper (1),
66 .BR update_rc.d (8)
67 .SH AUTHOR
68 Joey Hess <joeyh@debian.org>