daemontools and ulimit

Posted by oberstet on Super User See other posts from Super User or by oberstet
Published on 2012-06-07T16:30:53Z Indexed on 2012/06/07 16:42 UTC
Read the original article Hit count: 514

Filed under:
|

I have a service run under daemontools defined like:

/service/myservice/run

=>

#!/bin/sh

exec setuidgid someuser somecommand

Now, if I run this as a script directly from a root shell, somecommand will get a correct ulimit (unlimited).

However, when I start the service using

svc -u /service/myservice

then somecommand does get a ulimit effectively slightly above 11000.

How can I have somecommand get the correct ulimit even when started via svc (not from a shell)?

This is on FreeBSD 9 release.

© Super User or respective owner

Related posts about freebsd

Related posts about ulimit