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 if [ -e $pid_file ] ; then
10 echo " dhcpd already running with PID `cat $pid_file`"
14 echo Starting isc-dhcpd
16 if [ ! -e $lease_file ]; then
17 echo " Creating $lease_file"
21 /usr
/sbin
/dhcpd
-q -cf $config_file -lf $lease_file
24 echo " isc-dhcpd failed to start"
29 echo "Stopping isc-dhcpd"
30 if [ -e $pid_file ]; then
31 kill -KILL `cat $pid_file`
34 echo " PID " `cat $pid_file` not found
35 echo " Is the DHCP server running?"
40 echo " $pid_file not found"