*** From dhcp-server -- To unsubscribe, see the end of this message. ***
[EMAIL PROTECTED] writes:
>Wouldn't it be neat if the server checked for the existence of a
>dhpcd.leases~ file if it was unable to find a dhcpd.leases file, and,
>missing that, made a new dhcpd.leases file?
Sounds like a job for the startup script:
(
cd /var/local/dhcpd # or wherever
if [ ! -f dhcpd.leases ]
then
if [ -f dhcpd.leases~ ]
then
mv dhcpd.leases~ dhcpd.leases
else
touch dhcpd.leases
fi
fi
)
if [ -x /usr/local/sbin/dhcpd ] && [ -f /var/local/dhcpd/dhcpd.conf ]
then
/usr/local/sbin/dhcpd
fi
Philip Guenther
----------------------------------------------------------------------
[EMAIL PROTECTED] UNIX Systems and Network Administrator
Gustavus Adolphus College St. Peter, MN 56082-1498
Source code never lies: it just misleads (Programming by Purloined Letter?)
------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED] Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------