2006-11-14 09:01:22 +10:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# /etc/rc.d/dhcpd: start/stop dhcp daemon
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2008-05-22 23:15:44 +02:00
|
|
|
/usr/sbin/dhcpd -q
|
|
|
|
;;
|
2006-11-14 09:01:22 +10:00
|
|
|
stop)
|
2008-05-22 23:15:44 +02:00
|
|
|
killall -q /usr/sbin/dhcpd
|
|
|
|
;;
|
2006-11-14 09:01:22 +10:00
|
|
|
restart)
|
2008-05-22 23:15:44 +02:00
|
|
|
$0 stop
|
|
|
|
sleep 1
|
|
|
|
$0 start
|
|
|
|
;;
|
2006-11-14 09:01:22 +10:00
|
|
|
*)
|
2008-05-22 23:15:44 +02:00
|
|
|
echo "usage: $0 [start|stop|restart]"
|
|
|
|
;;
|
2006-11-14 09:01:22 +10:00
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|