Subject: Re: Too many open files
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Peter Eisch <peter@boku.net>
List: current-users
Date: 06/21/2007 07:38:59
On 6/21/07 6:03 AM, "Manuel Bouyer" <bouyer@antioche.eu.org> wrote:

> On Thu, Jun 21, 2007 at 01:43:55PM +0300, Martti Kuparinen wrote:
>> Manuel Bouyer wrote:
>> 
>>> so your're probably hitting the soft descriptor limit for ntpd.
>>> I have several systems where I had to bump it in /etc/rc.d/ because ntpd
>>> opens
>>> one socket per IP address :(
>> 
>> What should I set and where?
> 
> I added
> ulimit -n 256
> at the start of ntpd_precmd() in /etc/rc.d/ntpd

Isn't the "more right" way to do this is create a file at:

    /etc/rc.conf.d/ntpd

That contains the one line:

    ulimit -n 256

Then you're protected against system upgrades or changes.  I do similar
things for bacula an mysqld and it works quite nicely.

peter