.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "DH_INSTALLINIT 1" .TH DH_INSTALLINIT 1 "2019-04-08" "12.1.1~bpo9+1" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dh_installinit \- install service init files into package build directories .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdh_installinit\fR [\fIdebhelperĀ options\fR] [\fB\-\-name=\fR\fIname\fR] [\fB\-n\fR] [\fB\-R\fR] [\fB\-r\fR] [\fB\-d\fR] [\fB\-\-\fRĀ \fIparams\fR] .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBdh_installinit\fR is a debhelper program that is responsible for installing init scripts with associated defaults files. In compatibility levels up to and including 10, \fBdh_installinit\fR will also install some systemd related files provided by the debian packaging (see the \*(L"\s-1FILES\*(R"\s0 section below). In compatibility levels up to and including 11, \fBdh_installinit\fR will also handle upstart jobs provided in the debian packaging (see the \*(L"\s-1FILES\*(R"\s0 for more information on this as well). .PP It also automatically generates the \fIpostinst\fR and \fIpostrm\fR and \fIprerm\fR commands needed to set up the symlinks in \fI/etc/rc*.d/\fR to start and stop the init scripts. .PP In compat 10 or earlier: If a package only ships a systemd service file and no sysvinit script is provided, you may want to exclude the call to dh_installinit for that package (e.g. via \fB\-N\fR). Otherwise, you may get warnings from lintian about init.d scripts not being included in the package. .SH "FILES" .IX Header "FILES" .IP "debian/\fIpackage\fR.init" 4 .IX Item "debian/package.init" If this exists, it is installed into etc/init.d/\fIpackage\fR in the package build directory. .IP "debian/\fIpackage\fR.default" 4 .IX Item "debian/package.default" If this exists, it is installed into etc/default/\fIpackage\fR in the package build directory. .IP "debian/\fIpackage\fR.upstart" 4 .IX Item "debian/package.upstart" In compatibility level 11, this file will trigger an error with a reminder about ensuring the proper removal of the upstart file in the previous package version. Please consider using the \*(L"rm_conffile\*(R" feature from \&\fIdh_installdeb\fR\|(1) to ensure the proper removal of previous upstart files. .Sp In compatibility level 10, if this file exists, it is installed into etc/init/\fIpackage\fR.conf in the package build directory. .IP "debian/\fIpackage\fR.service" 4 .IX Item "debian/package.service" If this exists, it is installed into lib/systemd/system/\fIpackage\fR.service in the package build directory. Only used in compat levels 10 and below. .IP "debian/\fIpackage\fR.tmpfile" 4 .IX Item "debian/package.tmpfile" If this exists, it is installed into usr/lib/tmpfiles.d/\fIpackage\fR.conf in the package build directory. (The tmpfiles.d mechanism is currently only used by systemd.) Only used in compat levels 10 and below. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-n\fR, \fB\-\-no\-scripts\fR" 4 .IX Item "-n, --no-scripts" Do not modify \fIpostinst\fR/\fIpostrm\fR/\fIprerm\fR scripts. .IP "\fB\-o\fR, \fB\-\-only\-scripts\fR" 4 .IX Item "-o, --only-scripts" Only modify \fIpostinst\fR/\fIpostrm\fR/\fIprerm\fR scripts, do not actually install any init script, default files, upstart job or systemd service file. May be useful if the file is shipped and/or installed by upstream in a way that doesn't make it easy to let \fBdh_installinit\fR find it. .Sp \&\fBCaveat\fR: This will bypass all the regular checks and \&\fIunconditionally\fR modify the scripts. You will almost certainly want to use this with \fB\-p\fR to limit, which packages are affected by the call. Example: .Sp .Vb 3 \& override_dh_installinit: \& dh_installinit \-pfoo \-\-only\-scripts \& dh_installinit \-\-remaining .Ve .IP "\fB\-R\fR, \fB\-\-restart\-after\-upgrade\fR" 4 .IX Item "-R, --restart-after-upgrade" Do not stop the init script until after the package upgrade has been completed. This is the default behaviour in compat 10. .Sp In early compat levels, the default was to stop the script in the \&\fIprerm\fR, and starts it again in the \fIpostinst\fR. .Sp This can be useful for daemons that should not have a possibly long downtime during upgrade. But you should make sure that the daemon will not get confused by the package being upgraded while it's running before using this option. .IP "\fB\-\-no\-restart\-after\-upgrade\fR" 4 .IX Item "--no-restart-after-upgrade" Undo a previous \fB\-\-restart\-after\-upgrade\fR (or the default of compat 10). If no other options are given, this will cause the service to be stopped in the \fIprerm\fR script and started again in the \fIpostinst\fR script. .IP "\fB\-r\fR, \fB\-\-no\-stop\-on\-upgrade\fR, \fB\-\-no\-restart\-on\-upgrade\fR" 4 .IX Item "-r, --no-stop-on-upgrade, --no-restart-on-upgrade" Do not stop init script on upgrade. This has the side-effect of not restarting the service as a part of the upgrade. .Sp If you want to restart the service with minimal downtime, please use \&\fB\-\-restart\-after\-upgrade\fR (default in compat 10 or later). If you want the service to be restarted but be stopped during the upgrade, then please use \fB\-\-no\-restart\-after\-upgrade\fR (note the \*(L"after-upgrade\*(R"). .Sp Note that the \fB\-\-no\-restart\-on\-upgrade\fR alias is deprecated and will be removed in compat 12. This is to avoid confusion with the \&\fB\-\-no\-restart\-after\-upgrade\fR option. The \fB\-\-no\-stop\-on\-upgrade\fR variant was introduced in debhelper 10.2 (included in Debian stretch). .IP "\fB\-\-no\-start\fR" 4 .IX Item "--no-start" Do not start the init script on install or upgrade, or stop it on removal. Only call \fBupdate\-rc.d\fR. Useful for rcS scripts. .IP "\fB\-\-no\-enable\fR" 4 .IX Item "--no-enable" Disable the init script on purge, but do not enable them on install. This implies a versioned dependency on \fBinit-system-helpers (>= 1.51)\fR as it is the first (functional) version that supports \&\fBupdate\-rc.d