add new changed files for netsnmpd

This commit is contained in:
Peter Pfeiffer
2009-08-25 14:12:32 +02:00
parent f1a72ad3b2
commit 5c9dd66178
4 changed files with 1140 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/net-snmp
#
# Description : This is a script that starts net-snmp as deamon
#
# Authors : Peter Pfeiffer (peterman@ipfire.org)
#
# Version : 01.00
#
# Notes :
#
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
boot_mesg "Starting net-snmp - SNMPD..."
loadproc /usr/sbin/snmpd -c /etc/snmpd.conf > /dev/null
evaluate_retval
;;
stop)
boot_mesg "Stopping net-snmp - SNMPD..."
killproc /usr/sbin/snmpd
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/snmpd
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/net-snmp