diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-07-25 14:36:24 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-07-25 14:36:24 +0000 |
commit | c52a1a6eb4ad278a7b6d9eeeb9c7c88f73ca8d8c (patch) | |
tree | 6ea332ea2bc8d6dfbfeba417c0e0d40a4608daaa /testing/net-snmp/snmpd.rc | |
parent | 43983783a3e8bf61896eb93a2858a14bbaf3a53b (diff) |
Mon Jul 25 14:36:20 UTC 2011
Diffstat (limited to 'testing/net-snmp/snmpd.rc')
-rw-r--r-- | testing/net-snmp/snmpd.rc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/testing/net-snmp/snmpd.rc b/testing/net-snmp/snmpd.rc deleted file mode 100644 index 9f1b83f64..000000000 --- a/testing/net-snmp/snmpd.rc +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof -o %PPID /usr/sbin/snmpd` -case "$1" in - start) - stat_busy "Starting Net-SNMP" - [ -z "$PID" ] && /usr/sbin/snmpd - if [ $? -gt 0 ]; then - stat_fail - else - echo $PID > /var/run/snmpd.pid - add_daemon snmpd - stat_done - fi - ;; - stop) - stat_busy "Stopping Net-SNMP" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm /var/run/snmpd.pid - rm_daemon snmpd - stat_done - fi - ;; - restart) - $0 stop - sleep 2 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |