[Pkg-sysvinit-commits] r1675 - sysvinit/trunk/debian/sysv-rc/sbin

Petter Reinholdtsen pere at alioth.debian.org
Mon Aug 31 17:07:49 UTC 2009


Author: pere
Date: 2009-08-31 17:07:49 +0000 (Mon, 31 Aug 2009)
New Revision: 1675

Modified:
   sysvinit/trunk/debian/sysv-rc/sbin/update-rc.d
Log:
When comparing LSB headers and update-rc.d arguments, runlevels 0 and 6 are always stop runlevels.

Modified: sysvinit/trunk/debian/sysv-rc/sbin/update-rc.d
===================================================================
--- sysvinit/trunk/debian/sysv-rc/sbin/update-rc.d	2009-08-31 16:20:53 UTC (rev 1674)
+++ sysvinit/trunk/debian/sysv-rc/sbin/update-rc.d	2009-08-31 17:07:49 UTC (rev 1675)
@@ -491,8 +491,11 @@
             } elsif ($arg eq '.') {
                 next;
             }
-            push(@arg_start_lvls, $arg) if $start;
-            push(@arg_stop_lvls, $arg) if $stop;
+            # Runlevels 0 and 6 are always stop runlevels
+            push(@arg_start_lvls, $arg) if $start
+                && (0 ne $arg && 6 ne $arg);
+            push(@arg_stop_lvls, $arg) if $stop
+                || 0 eq $arg || 6 eq $arg;
         } continue {
             $argi++;
         }




More information about the Pkg-sysvinit-commits mailing list