summaryrefslogtreecommitdiff
path: root/package/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'package/dhcp')
-rw-r--r--package/dhcp/files/dhcpd.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/dhcp/files/dhcpd.init b/package/dhcp/files/dhcpd.init
index acdfc501f..02349acae 100644
--- a/package/dhcp/files/dhcpd.init
+++ b/package/dhcp/files/dhcpd.init
@@ -11,10 +11,10 @@ autostart)
start)
mkdir -p /var/state/dhcp
touch /var/state/dhcp/dhcpd.leases
- dhcpd $dhcpd_flags
+ /usr/sbin/dhcpd $dhcpd_flags
;;
autostop|stop)
- pkill dhcpd
+ kill $(pgrep -f /usr/sbin/dhcpd)
;;
restart)
sh $0 stop