From 6eba255b716865fcb688afe627eb1568718bc09b Mon Sep 17 00:00:00 2001 From: universe II Date: Thu, 25 Feb 2016 22:24:43 +0100 Subject: [PATCH] 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 Reviewed-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- package/netsnmp/S59snmpd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/netsnmp/S59snmpd b/package/netsnmp/S59snmpd index 2762082476..2d076e0eab 100755 --- a/package/netsnmp/S59snmpd +++ b/package/netsnmp/S59snmpd @@ -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 "." } -- 2.30.2