]> andersk Git - moira.git/blobdiff - gen/dhcp.sh
Command line printer manipulation client, and build goo.
[moira.git] / gen / dhcp.sh
index c43efea865107bf1b55eb27138fde4abdb456fc3..0cffe760f79097f0ed6ca3ae8dd078b9d9bd14d2 100755 (executable)
@@ -13,15 +13,12 @@ MR_MISSINGFILE=47836473
 MR_MKCRED=47836474
 MR_TARERR=47836476
 
-PATH=/usr/bin
+PATH=/usr/bin:/bin
 TARFILE=/var/tmp/dhcp.out
 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.038948 seconds and 4 git commands to generate.