summaryrefslogtreecommitdiff
path: root/testing/net-snmp/snmpd.rc
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-06 11:34:03 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-06 11:34:03 -0300
commit32b74695faa265e8390b32b499b34b95f186385b (patch)
tree3f4128f46d75d1eae0c261d022a73e5a24bc0e74 /testing/net-snmp/snmpd.rc
parent113cea3115f41b82346029305d739d1513239929 (diff)
Remove evil dirs
Diffstat (limited to 'testing/net-snmp/snmpd.rc')
-rw-r--r--testing/net-snmp/snmpd.rc38
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