michael at orlitzky
Aug 1, 2012, 8:49 AM
Post #3 of 9
On 08/01/12 11:27, Canek Peláez Valdés wrote:
> On Wed, Aug 1, 2012 at 9:41 AM, Michael Orlitzky <michael [at] 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`.
> If you are willing to try, systemd allows you to set not only the
> limits for opened files, but also for basically every knob the Linux
> kernel has. And to set it per daemon (or unit, in systemd parlance),
> of course; for what you want, you would only need to set:
> in the [Service] section of your unit. If you are interested, all the
> relevant documentation is in systemd.exec(5).
This is our mail filtering gateway, so I probably won't be willing to
try systemd until the next time we replace the hardware =)
That does sound extremely useful though. I'm planning on converting my
desktops after it gets a little bit more traction.