70
68
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
71
69
start-stop-daemon --quiet --start --exec /usr/sbin/snmpd -- $SNMPDOPTS
74
72
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
75
73
# Allow snmpd time to start up.
77
75
start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd -- $TRAPDOPTS
83
80
log_daemon_msg "Reloading network management services:"
84
81
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
85
82
start-stop-daemon --quiet --stop --signal 1 \
86
83
--pidfile /var/run/snmpd.pid --exec /usr/sbin/snmpd
95
94
echo "Usage: /etc/init.d/snmpd {start|stop|restart|reload|force-reload|status}"