1 #!/bin/sh /etc/rc.common
3 lease_file
=/tmp
/dhcpd.leases
4 config_file
=/etc
/dhcpd.conf
5 pid_file
=/var
/run
/dhcpd.pid
8 echo Starting isc-dhcpd
10 if [ ! -e $lease_file ]; then
11 echo " Creating $lease_file"
15 /usr
/sbin
/dhcpd
-cf $config_file -lf $lease_file
19 echo " isc-dhcpd failed to start"
24 echo "Stopping isc-dhcpd"
31 echo " PID " `cat $pid_file` not found
32 echo " Is the DHCP server running?"
38 echo " $pid_file not found"