Gentoo Archives: gentoo-user

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Persistent ulimit for daemons
Date: Fri, 03 Aug 2012 16:30:46
Message-Id: 501BFC53.80105@orlitzky.com
In Reply to: Re: [gentoo-user] Persistent ulimit for daemons by Graham Murray
1 On 08/03/2012 01:08 AM, Graham Murray wrote:
2 > Michael Orlitzky <michael@××××××××.com> writes:
3 >
4 >> Is there a blessed method these days for setting the ulimit per-daemon?
5 >>
6 >> The best I've been able to do is a global setting in /etc/rc.conf:
7 >>
8 >> rc_ulimit="-s 1048576"
9 >>
10 >> The entries under /etc/security seem to be ignored when using
11 >> `/etc/init.d/foo start`.
12 >
13 > Add an rc_ulimits= line to /etc/conf.d/daemon_name
14 >
15
16 Wow, this works. Thanks!