]> andersk Git - moira.git/commitdiff
use abstraction barriers to restart dhcpd
authorjweiss <jweiss>
Wed, 12 Aug 2009 22:38:37 +0000 (22:38 +0000)
committerjweiss <jweiss>
Wed, 12 Aug 2009 22:38:37 +0000 (22:38 +0000)
gen/dhcp.sh

index f9eb635d4eb7c21f61ecdb430eb368aa33efdd14..0cffe760f79097f0ed6ca3ae8dd078b9d9bd14d2 100755 (executable)
@@ -19,9 +19,6 @@ BOOTGEN=/var/boot/dhcpd.conf.print
 BOOTHEAD=/var/boot/dhcpd.conf.head
 BOOTFOOT=/var/boot/dhcpd.conf.foot
 BOOTFILE=/var/boot/dhcpd.conf
-LEASEFILE=/var/boot/dhcpd.leases
-PIDFILE=/var/boot/dhcpd.pid
-BINFILE=/var/boot/dhcpd
 PSWDFILE=/var/boot/hp.add
 
 # Alert if the tar file or other needed files do not exist
@@ -43,8 +40,8 @@ done
 cat $BOOTHEAD $BOOTGEN $BOOTFOOT > $BOOTFILE
 
 # kill and rerun dhcpd
-test -f $PIDFILE && kill `cat $PIDFILE`
-test -x $BINFILE && $BINFILE -cf $BOOTFILE -lf $LEASEFILE -pf $PIDFILE 
+/etc/init.d/dhcpd stop
+/etc/init.d/dhcpd start
 
 # cleanup
 test -f $TARFILE && rm -f $TARFILE
This page took 0.045871 seconds and 5 git commands to generate.