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 exists, then it is installed into
16 etc/init.d/package in the package build directory, with "package" replaced
23 for a list of options common to all debhelper commands.
26 Do not modify postinst/postrm/prerm scripts.
28 .B \-r, \--no-restart-on-upgrade
29 Do not restart daemon on upgrade.
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.)
37 .B \-uparams, \--update-rcd-params=params
42 If not specified, "defaults" will be passed to
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
57 for a list of environment variables that affect all debhelper commands.
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.
66 Joey Hess <joeyh@debian.org>