1 #!/bin/sh /etc/rc.common
4 lease_file
=/tmp
/dhcpd.leases
5 config_file
=/etc
/dhcpd.conf
6 pid_file
=/var
/run
/dhcpd.pid
9 echo Starting isc-dhcpd
11 if [ ! -e $lease_file ]; then
12 echo " Creating $lease_file"
16 /usr
/sbin
/dhcpd
-q -cf $config_file -lf $lease_file
19 echo " isc-dhcpd failed to start"
24 echo "Stopping isc-dhcpd"
25 if [ -e $pid_file ]; then
29 echo " PID " `cat $pid_file` not found
30 echo " Is the DHCP server running?"
35 echo " $pid_file not found"