For several releases the *-rc.d policy tools have always been available on the system. At points we've had bugs that created corner-cases which make the *-rc.d tools go missing during an upgrade phase, but that should not be worked around in each and every package. Thus remove the check if invoke-rc.d is available (as it's a bug in some other package if it isn't these days).
Slightly reword the paragraph to not sound like anything should be converted (which isn't the normal case these days), rather than just use invoke-rc.d. Closes: #833177 --- policy.sgml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/policy.sgml b/policy.sgml index 742ab81..d2e39ae 100644 --- a/policy.sgml +++ b/policy.sgml @@ -7749,17 +7749,11 @@ test -f <var>program-executed-later-in-script</var> || exit 0 </p> <p> - Most packages will simply need to change: - <example compact="compact">/etc/init.d/<package> - <action></example> in their <prgn>postinst</prgn> - and <prgn>prerm</prgn> scripts to: + Most packages will simply use: <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> + in their <prgn>postinst</prgn> and <prgn>prerm</prgn> scripts. </p> <p> -- 2.10.2