Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /home/mtersmitten/Desktop/snmpd-squeeze 2015-07-18 22:21:12.037083675 +0200
- +++ /home/mtersmitten/Desktop/snmpd-wheezy 2015-07-18 22:19:02.269782914 +0200
- @@ -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
- ;;
- *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement