Package:  snmptt
Version:  1.2-1
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-provides incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d script.  The provides is the skeleton value, not
the name of the script.  Also, the service log to syslog, but do not
depend on $syslog.  The redundant dependency on $local_fs (implied
with $remote_fs) can be dropped.

<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 script will fail
to install if another broken script providing skeleton already is
installed, and start to early in the boot if it is able to install.

diff -ur snmptt-1.2/debian/init.d snmptt-1.2-pere/debian/init.d
--- snmptt-1.2/debian/init.d    2009-08-18 09:45:39.000000000 +0200
+++ snmptt-1.2-pere/debian/init.d       2009-08-18 09:47:11.000000000 +0200
@@ -1,8 +1,8 @@
 #!/bin/sh
 ### BEGIN INIT INFO
-# Provides:          skeleton
-# Required-Start:    $local_fs $remote_fs
-# Required-Stop:     $local_fs $remote_fs
+# Provides:          snmptt
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: SNMP Trap Translator

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to