From: universe II Date: Thu, 25 Feb 2016 21:24:43 +0000 (+0100) Subject: netsnmp: add missing reload of snmptrapd in init script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eba255b716865fcb688afe627eb1568718bc09b;p=buildroot.git 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 --- 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 "." }