From 0205825b7d39d8d86073689a8d1129537f918caa Mon Sep 17 00:00:00 2001 From: jweiss Date: Wed, 12 Aug 2009 22:38:37 +0000 Subject: [PATCH] use abstraction barriers to restart dhcpd --- gen/dhcp.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gen/dhcp.sh b/gen/dhcp.sh index f9eb635d..0cffe760 100755 --- a/gen/dhcp.sh +++ b/gen/dhcp.sh @@ -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 -- 2.45.1