Since several releases the *-rc.d policy tools are always available
on their 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 should be converting
something (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 444c33e..431bc47 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/&lt;package&gt;
-             &lt;action&gt;</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> &lt;action&gt;
-       else
-               /etc/init.d/<var>package</var> &lt;action&gt;
-       fi
              </example>
+             in their <prgn>postinst</prgn> and <prgn>prerm</prgn> scripts.
            </p>
 
            <p>
-- 
2.10.2

Reply via email to