From owner-freebsd-questions Fri Feb 25 6:48:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.utexas.edu (wb3-a.mail.utexas.edu [128.83.126.138]) by hub.freebsd.org (Postfix) with SMTP id 6B57937BC98 for ; Fri, 25 Feb 2000 06:48:09 -0800 (PST) (envelope-from oscars@mail.utexas.edu) Received: (qmail 309 invoked by uid 0); 25 Feb 2000 14:47:59 -0000 Received: from dhcp-199-210.dsl.utexas.edu (HELO oscar-dsl) (128.83.199.210) by umbs-smtp-3 with SMTP; 25 Feb 2000 14:47:59 -0000 Message-Id: <4.2.2.20000225090236.00a85520@mail.utexas.edu> X-Sender: oscars@mail.utexas.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Fri, 25 Feb 2000 09:05:49 -0600 To: freebsd-questions@freebsd.org From: Oscar Ricardo Silva Subject: Re: the real question In-Reply-To: <20000225085849.C4860@newton.baruch.cuny.edu> References: <3.0.32.20000224091153.0095a840@mail.wavefire.com> <3.0.32.20000224091153.0095a840@mail.wavefire.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dhcpd.leases is the file with the current active leases. According to the man page for dhcpd.leases: 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 /var/db/dhcpd.leases~. Finally, the newly written lease database is moved into place. I got further clarification from Ted Lemon: It's once an hour at a minimum - if you write a thousand leases before an hour has elapsed, the file is rewritten, but if you don't, after an hour has elapsed it will be rewritten. _MelloN_ So basically, don't touch the file, leave it alone. The dhcpd daemon will take care of refreshing the file. Oscar At 08:58 AM 2/25/00 -0500, Vince Gonzalez, you wrote: >On Thu, Feb 24, 2000 at 09:11:54AM -0800, Chameleon wrote: > > At 03:52 PM 2/23/00 -0800, Fred J. Lomas wrote: > > >Can anyone tell me the difference between the files dhcpd.leases > > and > > >dhcpd.leases~ I cant seem to find any. and is there a way to clear > > those > > >files so they can refresh ?? > > > > > I'm not sure how to refresh the files... > > but dhcpd.leases~ is a copy of the old dhcpd.leases... before it was > > overwriten by the current dhcpd.leases... > >The point is, you're not supposed to. Out of curiosity, why would you >want to? > >--vince "Don't believe the hype" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message