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    [EMAIL PROTECTED]

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to