Subject: Re: Too many open files
To: Peter Eisch <peter@boku.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 06/21/2007 15:15:48
On Thu, Jun 21, 2007 at 07:38:59AM -0500, Peter Eisch wrote:
> > 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.

Yes, it's better. I just didn't think about this way :)

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--