diff options
Diffstat (limited to 'package/net-snmp/files')
-rw-r--r-- | package/net-snmp/files/snmpd.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/net-snmp/files/snmpd.init b/package/net-snmp/files/snmpd.init index 8be660ca4..f7e9b917b 100644 --- a/package/net-snmp/files/snmpd.init +++ b/package/net-snmp/files/snmpd.init @@ -12,10 +12,10 @@ autostart) ;; start) [ -d /var/lib/snmp ] || mkdir -p /var/lib/snmp - snmpd $snmpd_flags + /usr/sbin/snmpd $snmpd_flags ;; stop) - pkill snmpd + kill $(pgrep -f /usr/sbin/snmpd) ;; restart) sh $0 stop |