netsnmp: add missing reload of snmptrapd in init script
In case of a reload command the snmpdtrapd wasn't restarted. Signed-off-by: Andreas Ehmanns <universeII@gmx.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
11d99e7257
commit
6eba255b71
@ -65,6 +65,11 @@ reload() {
|
||||
start-stop-daemon -q -K -s 1 -p /var/run/snmpd.pid -x /usr/sbin/snmpd
|
||||
printf " snmpd"
|
||||
fi
|
||||
|
||||
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
|
||||
start-stop-daemon -q -K -s 1 -p /var/run/snmptrapd.pid -x /usr/sbin/snmptrapd
|
||||
printf " snmptrapd"
|
||||
fi
|
||||
echo "."
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user