forked from ports/contrib
24 lines
244 B
Bash
24 lines
244 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/dhcpd: start/stop dhcp daemon
|
|
#
|
|
|
|
case $1 in
|
|
start)
|
|
/usr/sbin/dhcpd -q
|
|
;;
|
|
stop)
|
|
killall -q /usr/sbin/dhcpd
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 [start|stop|restart]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|