djbdns
[Top] [All Lists]

Re: Too many open files tinydns?

To: <dns@list.cr.yp.to>
Subject: Re: Too many open files tinydns?
From: Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu>
Date: Tue, 16 Jan 2007 09:55:14 +0100
Cc: "Shaun" <mailinglists@unix-scripts.com>
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
In-reply-to: <0d2f01c73913$8446c1e0$6601a8c0@ndciwkst1>
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Organization: E.C.C. sa - Computer Consultants
References: <20070116013754.44651DA824@mailserver7.hushmail.com> <0d2f01c73913$8446c1e0$6601a8c0@ndciwkst1>
On Mon, 15 Jan 2007 18:10:36 -0800
"Shaun" <mailinglists@unix-scripts.com> wrote:

> My updater script builds a seperate data.cdb file and then copys it
> over the old one.  No restarting of tinydns is done.  I thought i
> told you this before but maybe not.

You should not copy but move the file into place. This is supported by
tinydns. The opening of multiple copies of the file is indeed a bug,
but it's triggered only by errors in the datafile itself - something
that can easily happen when you copy instead of move (move is atomic,
copy not).

Take care,

-- 
Stefaan A Eeckels
-- 
One of the greatest delusions in the world is the hope that the evils 
in this world are to be cured by legislation.          -- Thomas Reed

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Too many open files tinydns?, Stefaan A Eeckels <=