[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#541233: lprng: Incorrect runlevels in init.d LSB header



Package:  lprng
Version:  3.8.28-4
Severity: important
Tags:     patch
User:     initscripts-ng-devel@lists.alioth.debian.org
Usertags: incorrect-runlevels

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d/lprng script.  The runlevel list state that it
should stop in runlevel 4.  This is inconsistent with the Debian
runlevels and the arguments used for update-rc.d.

<URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html>
documents the LSB header format.  Some debian notes are available from
<URL:http://wiki.debian.org/LSBInitScripts>.

This patch should solve the issue.  Without it, the init.d fail to
start in runlevel 4 by default with dependency based boot sequencing.

diff -ur lprng-3.8.A/debian/init.d lprng-3.8.A-pere/debian/init.d
--- lprng-3.8.A/debian/init.d   2009-08-12 18:56:32.000000000 +0200
+++ lprng-3.8.A-pere/debian/init.d      2009-08-12 18:55:54.000000000 +0200
@@ -3,8 +3,8 @@
 # Provides: lpd
 # Required-Start: $network $remote_fs $syslog
 # Required-Stop: $network
-# Default-Start: 2 3 5
-# Default-Stop: 0 1 4 6
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
 # Short-Description: Start lpd to allow printing
 # Description: lpd is the print daemon required for lpr to work properly.
 #   It is basically a server that arbitrates print jobs to printer(s).

Happy hacking,
--
Petter Reinholdtsen




Reply to: