* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / blfs / init.d / dhcp
bloba9095654b63c796048e4e228b1ec34d7a8bc0c68
1 #!/bin/sh
2 # Begin $rc_base/init.d/dhcp
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting DHCP Server..."
13 loadproc dhcpd -q eth1
16 stop)
17 echo "Stopping DHCP Server..."
18 killproc dhcpd
21 reload)
22 echo "Reloading DHCP Server..."
23 reloadproc dhcpd
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
32 status)
33 statusproc dhcpd
37 echo "Usage: $0 {start|stop|reload|restart|status}"
38 exit 1
40 esac
42 # End $rc_base/init.d/dhcp