]> git.donarmstrong.com Git - debhelper.git/blob - dh_installinit.1
r383: * dh_movefiles: no longer does the symlink ordering hack, as
[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 exists, then it is installed into
16 etc/init.d/package in the package build directory, with "package" replaced
17 by the package name.
18 .SH OPTIONS
19 .TP
20 .B debhelper options
21 See
22 .BR debhelper (1)
23 for a list of options common to all debhelper commands.
24 .TP
25 .B \-n, \--noscripts
26 Do not modify postinst/postrm/prerm scripts.
27 .TP
28 .B \-r, \--no-restart-on-upgrade
29 Do not restart daemon on upgrade.
30 .TP
31 .B \-d, \--remove-d
32 Remove trailing "d" from the name of the package, and use the result for the
33 filename the init script is installed as in etc/init.d/ . This may be useful
34 for daemons with names ending in "d". (Note: this takes precedence over
35 the --init-script parameter described below.)
36 .TP
37 .B \-uparams, \--update-rcd-params=params
38 .TP
39 .B \-\- 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. Note that if you use this parameter,
49 dh_installinit will look to see if a file in the debian/ directory exists
50 that looks like "scriptname" or "package.scriptname" and if so will install
51 it as the init script in preference to the files it normally installs. This
52 feature is really only useful if you need a single package to install more
53 than one init script.
54 .SH ENVIRONMENT
55 See
56 .BR debhelper (1)
57 for a list of environment variables that affect all debhelper commands.
58 .SH NOTES
59 Note that this command is not idempotent. "dh_clean -k" should be called
60 between invocations of this command. Otherwise, it may cause multiple
61 instances of the same text to be added to maintainer scripts.
62 .SH "SEE ALSO"
63 .BR debhelper (1),
64 .BR update_rc.d (8)
65 .SH AUTHOR
66 Joey Hess <joeyh@debian.org>