Bug#833177: 9.3.3.2: Remove /etc/init.d/<package>
Package: debian-policy
Severity: normal
9.3.3.2 Running initscripts
---------------------------
Please remove usage of "/etc/init.d/package <action>" as alternative for
invoke-rc.d
invoke-rc.d is essential
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff --git a/policy.sgml b/policy.sgml
index 9cd182b..6395dbb 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -7773,13 +7773,8 @@ test -f <var>program-executed-later-in-script</var> || exit 0
<example compact="compact">/etc/init.d/<package>
<action></example> in their <prgn>postinst</prgn>
and <prgn>prerm</prgn> scripts to:
- <example compact="compact">
- if which invoke-rc.d >/dev/null 2>&1; then
- invoke-rc.d <var>package</var> <action>
- else
- /etc/init.d/<var>package</var> <action>
- fi
- </example>
+ <example compact="compact">invoke-rc.d <var>package</var>
+ <action></example>
</p>
<p>
Reply to: