start)
echo -n "Starting network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon -q -S -x /usr/sbin/snmpd \
- -- $SNMPDOPTS
- echo -n " snmpd"
+ start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
+ echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
- start-stop-daemon -q -S -x /usr/sbin/snmptrapd \
- -- $TRAPDOPTS
- echo -n " snmptrapd"
+ start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
+ echo -n " snmptrapd"
fi
echo "."
;;
# Allow the daemons time to exit completely.
sleep 2
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
- echo -n " snmpd"
+ start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
+ echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
- # Allow snmpd time to start up.
- sleep 1
- start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
- echo -n " snmptrapd"
+ # Allow snmpd time to start up.
+ sleep 1
+ start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
+ echo -n " snmptrapd"
fi
echo "."
;;
reload|force-reload)
echo -n "Reloading network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon -q -K -s 1 \
- -p /var/run/snmpd.pid -x /usr/sbin/snmpd
- echo -n " snmpd"
+ start-stop-daemon -q -K -s 1 -p /var/run/snmpd.pid -x /usr/sbin/snmpd
+ echo -n " snmpd"
fi
echo "."
;;