[Pkg-sysvinit-devel]
bootclean, /sbin/ifup, and dhclient leases file
Sean Shapira
sds at jazzie.com
Tue Aug 22 08:52:51 UTC 2006
I've added a line to my bootclean script:
find . ! -xtype d ! -name utmp ! -name innd.pid \
+ ! -name dhclient.eth0.leases \
-print0 | xargs -0r rm -f -- \
|| { report_err ; return 1 ; }
to preserve the dhclient leases file. (It seems /sbin/ifup puts this in
/var/run.) Yet if it is deleted, dhclient will send a DHCPDISCOVER
message, and my DHCP server will respond with a DHCPOFFER of a different
IP address. This is messy. Preserving the leases file makes dhclient
send a DHCPREQUEST for the previously assigned IP address, and in most
cases the DHCP server will grant the request.
I guess I'm confused: doesn't everyone want their dhcp leases file to
persist between system reboots?
--
Sean Shapira sds at jazzie.com
More information about the Pkg-sysvinit-devel
mailing list