contrib/dhcp/dhcpd

24 lines
254 B
Plaintext
Raw Normal View History

2006-11-14 00:01:22 +01: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 00:01:22 +01:00
stop)
2008-05-22 23:15:44 +02:00
killall -q /usr/sbin/dhcpd
;;
2006-11-14 00:01:22 +01:00
restart)
2008-05-22 23:15:44 +02:00
$0 stop
sleep 1
$0 start
;;
2006-11-14 00:01:22 +01:00
*)
2008-05-22 23:15:44 +02:00
echo "usage: $0 [start|stop|restart]"
;;
2006-11-14 00:01:22 +01:00
esac
# End of file