[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set ulimit (nofile) for a daemon



On Wed, May 19, 2010 at 06:51:25PM -0400, Felipe Sateler wrote:

> >This is the wrong answer to the question "how do I set ulimits for a daemon
> >process?"  /etc/security/limits.d is only processed by pam_limits, which has
> >no reason to be in the path for service startup.

> cron, atd and schroot load pam_limits. Is that wrong? Or something
> else I'm not getting?

These daemons load pam_limits *when running on behalf of other users*.
That's an entirely different scenario than running a daemon per se.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature


Reply to: