recipes: libs/barelibs: Use the force when copy the libraries
[dragora.git] / archive / net-snmp / rc.main
blob4a5b760f0018eb76a93a2208829b3f88ee97bfbb
1 #! /bin/sh -
3 # snmpd/rc.main
5 # Daemon to respond to SNMP request packets.
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-snmpd}"
14 start()
16 echo "*** ${SVNAME}: Starting snmpd ..."
17 exec /usr/sbin/snmpd -f -A -a -c /etc/snmp/snmpd.conf
20 reset()
22 case $3 in
23 exit)
24 echo "*** ${SVNAME}: Exited status $4"
26 signal)
27 echo "*** ${SVNAME}: Killed on signal $5"
30 echo "*** ${SVNAME}: Stopped (${3})"
32 esac
35 # Branch to target
36 eval ${TARGET} "$@"