On Wednesday, August 01, 2012 10:41:41 AM Michael Orlitzky wrote:
> Is there a blessed method these days for setting the ulimit per-daemon?
> 
> The best I've been able to do is a global setting in /etc/rc.conf:
> 
>   rc_ulimit="-s 1048576"
> 
> The entries under /etc/security seem to be ignored when using
> `/etc/init.d/foo start`.

Michael,

I had to change the "nofiles" ulimit setting for my webserver. For that, I 
simply added the settings to the following file:

# cat /etc/security/limits.conf | grep apache
apache        hard  nofile   4096
apache        soft  nofile   4096

I would expect the same to work for any other daemon?

HTH,

Joost

Reply via email to