--- /etc/init.d/snmpd	2011-01-05 12:12:04.000000000 +0000
+++ /etc/init.d/snmpd.new	2011-01-17 11:22:25.000000000 +0000
@@ -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
     ;;
   *)
