summaryrefslogtreecommitdiff
path: root/package/net-snmp/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:57:30 +0100
commit0a96e4538fe6552dd75aa939b249030f4cdfd77f (patch)
tree8c998c4ab78ea4b60d433847a9632466b9a814a4 /package/net-snmp/files
parent845317b460ee99ad633534cad4de72404af7e30b (diff)
fix startup scripts, fix stop routine
Diffstat (limited to 'package/net-snmp/files')
-rw-r--r--package/net-snmp/files/snmpd.init4
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