Package: net-snmp
Version: 5.4.3~dfsg-2.2
Severity: normal
Tags: patch pending

Dear maintainer,

I've prepared and uploaded an NMU for net-snmp (versioned as
5.4.3~dfsg-2.3) based on the patch in the bug report.

Regards.
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sg...@debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
diff -Nru net-snmp-5.4.3~dfsg/debian/changelog net-snmp-5.4.3~dfsg/debian/changelog
--- net-snmp-5.4.3~dfsg/debian/changelog	2011-05-09 10:19:06.000000000 +0100
+++ net-snmp-5.4.3~dfsg/debian/changelog	2011-08-27 10:18:25.000000000 +0100
@@ -1,3 +1,12 @@
+net-snmp (5.4.3~dfsg-2.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix for init script status command when trapd is not running.  Thanks to
+    Steve Camfield <steve.camfi...@scamfield.co.uk> for the patch
+    (closes: #610306)
+
+ -- Stephen Gran <sg...@debian.org>  Sat, 27 Aug 2011 09:10:09 +0000
+
 net-snmp (5.4.3~dfsg-2.2) unstable; urgency=high
 
   * Non-maintainer upload.
diff -Nru net-snmp-5.4.3~dfsg/debian/snmpd.init net-snmp-5.4.3~dfsg/debian/snmpd.init
--- net-snmp-5.4.3~dfsg/debian/snmpd.init	2011-01-05 12:12:04.000000000 +0000
+++ net-snmp-5.4.3~dfsg/debian/snmpd.init	2011-08-27 09:55:59.000000000 +0100
@@ -90,8 +90,12 @@
     ;;
   status)
     status=0
-    status_of_proc /usr/sbin/snmpd snmpd || status=$?
-    status_of_proc /usr/sbin/snmptrapd snmptrapd || status=$?
+    if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
+    	status_of_proc /usr/sbin/snmpd snmpd || status=$?
+    fi
+    if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
+    	status_of_proc /usr/sbin/snmptrapd snmptrapd || status=$?
+    fi
     exit $status
     ;;
   *)

Attachment: signature.asc
Description: Digital signature

Reply via email to