From: Manoj Srivastava Date: Thu, 16 Jun 2005 05:33:54 +0000 (+0000) Subject: Update update-rc.d examples. Mention that one may need to remove and X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f00ab5b68ddbbb637c999e2fc7683b5f81e4d1fe;p=debian%2Fdebian-policy.git Update update-rc.d examples. Mention that one may need to remove and Author: srivasta Date: 2002/09/11 04:54:00 Update update-rc.d examples. Mention that one may need to remove and recreate the links if the program changes priority or run level (emphasis on may), and refer people to documentation for update-rc.d, allowing the author of update-rc.d discretion in changing the behaviour. git-archimport-id: srivasta@debian.org--etch/debian-policy--devel--3.0--patch-144 --- diff --git a/policy.sgml b/policy.sgml index 556c813..ff60513 100644 --- a/policy.sgml +++ b/policy.sgml @@ -4761,14 +4761,18 @@ test -f program-executed-later-in-script || exit 0 To get the default behavior for your package, put in your postinst script - update-rc.d package defaults >/dev/null + update-rc.d package defaults and in your postrm if [ "$1" = purge ]; then - update-rc.d package remove >/dev/null + update-rc.d package remove fi -

+ . Note that is your package changes runlevels + or priority, you may have to remove and recreate the + links, since otherwise the old links may + persist. Refer to the documentation of + update-rc.d

This will use a default sequence number of 20. If it does