daemontools and ulimit
- by oberstet
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.