diff options
author | Ted Lemon <source@isc.org> | 2001-01-25 08:34:57 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-01-25 08:34:57 +0000 |
commit | 43d5ca997f7466bdaa1ddffc93c499908f92f7cc (patch) | |
tree | 861d6b5e6e98053abe808173080ab3a023fce707 /server/dhcpd.leases.5 | |
parent | d83e416e5c5723d468edc44eefa0846485a335df (diff) | |
download | isc-dhcp-43d5ca997f7466bdaa1ddffc93c499908f92f7cc.tar.gz |
Clean up some problems.
Diffstat (limited to 'server/dhcpd.leases.5')
-rw-r--r-- | server/dhcpd.leases.5 | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/server/dhcpd.leases.5 b/server/dhcpd.leases.5 index 0c8dc241..64985fdd 100644 --- a/server/dhcpd.leases.5 +++ b/server/dhcpd.leases.5 @@ -29,24 +29,17 @@ for a given lease, the last one in the file is the current one. When dhcpd is first installed, there is no lease database. However, dhcpd requires that a lease database be present before it will start. To make the initial lease database, just create an empty file called -DBDIR/dhcpd.leases. +DBDIR/dhcpd.leases. You can do this with: +.PP +.nf + touch DBDIR/dhcpd.leases +.fi .PP In order to prevent the lease database from growing without bound, the file is rewritten from time to time. First, a temporary lease database is created and all known leases are dumped to it. Then, the old lease database is renamed DBDIR/dhcpd.leases~. Finally, the newly written lease database is moved into place. -.PP -There is a window of vulnerability where if the dhcpd process is -killed or the system crashes after the old lease database has been -renamed but before the new one has been moved into place, there will -be no DBDIR/dhcpd.leases. In this case, dhcpd will refuse to start, -and will require manual intervention. \fBDO NOT\fR simply create a -new lease file when this happens - if you do, you will lose all your -old bindings, and chaos will ensue. Instead, rename -DBDIR/dhcpd.leases~ to DBDIR/dhcpd.leases, restoring the old, valid -lease file, and then start dhcpd. This guarantees that a valid lease -file will be restored. .SH FORMAT Lease descriptions are stored in a format that is parsed by the same recursive descent parser used to read the @@ -149,6 +142,6 @@ dhcpd(8), dhcp-options(5), dhcpd.conf(5), RFC2132, RFC2131. .B dhcpd(8) was written by Ted Lemon <mellon@vix.com> under a contract with Vixie Labs. Funding -for this project was provided by the Internet Software Corporation. -Information about the Internet Software Consortium can be found at -.B http://www.isc.org/isc. +for this project was provided by the Internet Software Consortium. +Information about the Internet Software Consortium can be found at: +.B http://www.isc.org/ |