Limiting nproc in an upstart job

Posted by Kevin Schmid on Super User See other posts from Super User or by Kevin Schmid
Published on 2014-06-04T20:44:20Z Indexed on 2014/06/04 21:29 UTC
Read the original article Hit count: 183

Filed under:

What exactly does the stanza

limit nproc 20 20

in an Upstart job do?

I've read the documentation here (http://upstart.ubuntu.com/wiki/Stanzas#limit), and it seems like it would limit nproc for any process related to the job. However, I don't see this effect when I've added this to my job's conf file - in this specific case, I've confirmed that my test job's single process was able to fork more than 20 child processes. Any advice?

Thanks.

© Super User or respective owner

Related posts about upstart