I have a daemontools service whose
#!/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
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.