3 # snmpd This shell script takes care of starting and stopping
4 # the net-snmp SNMP daemon
7 # description: snmpd is net-snmp SNMP daemon.
9 # Source function library.
10 . /etc/init.d/functions
12 # Source networking configuration.
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 [ ${NETWORKING} = "no" ] && exit 0
20 prog="/usr/local/sbin/snmpd"
22 [ -x $prog -a -f /usr/local/share/snmp/snmpd.conf ] || exit 0
26 echo -n $"Starting $name: "
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$name
36 echo -n $"Shutting down $name: "
40 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$name
44 # See how we were called.
62 if [ -f /var/lock/subsys/$name ]; then
69 echo $"Usage: $0 {start|stop|restart|condrestart|status}"