[Pkg-net-snmp-devel] Bug#541366: snmpd: Incorrect init.d script dependencies

Petter Reinholdtsen pere at hungry.com
Thu Aug 13 17:21:46 UTC 2009


Package:  snmpd
Version:  5.4.1~dfsg-12
Severity: important
Tags:     patch
User:     initscripts-ng-devel at lists.alioth.debian.org
Usertags: incorrect-dependency

With dependency based boot sequencing, I discovered what I believe is
a bug in the init.d scripts. The dependencies are not correct.  It
uses files in /usr/, and thus need to depend on $remote_fs.  Also, the
daemons log to syslog, and should start after the syslog collector is
started.

<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 start to
early in the boot sequence.

diff -ur net-snmp-5.4.1~dfsg/debian/snmpd.init net-snmp-5.4.1~dfsg-pere/debian/snmpd.init
--- net-snmp-5.4.1~dfsg/debian/snmpd.init       2009-08-13 19:19:13.000000000 +0200
+++ net-snmp-5.4.1~dfsg-pere/debian/snmpd.init  2009-08-13 19:19:02.000000000 +0200
@@ -1,8 +1,8 @@
 #! /bin/sh -e
 ### BEGIN INIT INFO
 # Provides:           snmpd snmptrapd
-# Required-Start:     $network $local_fs
-# Required-Stop:      $network $local_fs
+# Required-Start:     $network $remote_fs $syslog
+# Required-Stop:      $network $remote_fs $syslog
 # Default-Start:      2 3 4 5
 # Default-Stop:       0 1 6
 # Short-Description:  SNMP agents

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-net-snmp-devel mailing list