]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Update update-rc.d examples. Mention that one may need to remove and
authorManoj Srivastava <srivasta@debian.org>
Thu, 16 Jun 2005 05:33:54 +0000 (05:33 +0000)
committerManoj Srivastava <srivasta@debian.org>
Thu, 16 Jun 2005 05:33:54 +0000 (05:33 +0000)
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

policy.sgml

index 556c8136597271ba69c485db3e224ea38ca34df3..ff605138510efb60a3f8f1eb997699c333cfaa96 100644 (file)
@@ -4761,14 +4761,18 @@ test -f <var>program-executed-later-in-script</var> || exit 0
              To get the default behavior for your package, put in your
              <prgn>postinst</prgn> script
              <example compact="compact">
-               update-rc.d <var>package</var> defaults &gt;/dev/null
+               update-rc.d <var>package</var> defaults 
              </example>
              and in your <prgn>postrm</prgn>
              <example compact="compact">
                if [ "$1" = purge ]; then
-               update-rc.d <var>package</var> remove &gt;/dev/null
+               update-rc.d <var>package</var> remove 
                fi
-             </example></p>
+             </example>. 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
+                 <prgn>update-rc.d</prgn></p>
 
            <p>
              This will use a default sequence number of 20.  If it does