1 .TH DH_INSTALLINIT 1 "" "Debhelper Commands" "Debhelper Commands"
3 dh_installinit \- install init scripts into package build directories
6 .I "[debhelper options] [--init-script=scriptname] [-n] [-r] [-d] [-uparams] -- [params]"
8 dh_installinit is a debhelper program that is responsible for installing
9 init scripts into package build directories.
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
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.)
25 for a list of options common to all debhelper commands.
28 Do not modify postinst/postrm/prerm scripts.
30 .B \-r, \--no-restart-on-upgrade
31 Do not restart daemon on upgrade.
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.)
39 .B \-uparams, \--update-rcd-params=params
44 If not specified, "defaults" will be passed to
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
59 for a list of environment variables that affect all debhelper commands.
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.
68 Joey Hess <joeyh@debian.org>