Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. --- /home/mtersmitten/Desktop/snmpd-squeeze 2015-07-18 22:21:12.037083675 +0200
  2. +++ /home/mtersmitten/Desktop/snmpd-wheezy 2015-07-18 22:19:02.269782914 +0200
  3. @@ -90,8 +90,12 @@
  4. ;;
  5. status)
  6. status=0
  7. - status_of_proc /usr/sbin/snmpd snmpd || status=$?
  8. - status_of_proc /usr/sbin/snmptrapd snmptrapd || status=$?
  9. + if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
  10. + status_of_proc /usr/sbin/snmpd snmpd || status=$?
  11. + fi
  12. + if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
  13. + status_of_proc /usr/sbin/snmptrapd snmptrapd || status=$?
  14. + fi
  15. exit $status
  16. ;;
  17. *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement