<div>I'm trying to understand how the respawn keyword works in a job file. See the attached files for details. </div>
<div> </div>
<div>I create a simple Perl daemon (attached "tmp-simple-pl.txt") that dummy loops. My Upstart job definition file is the attached "etc-event-d-simple.txt".<br> </div>
<div>When I execute "initctl emit simpleup" I end up getting 10 instances of "simple.pl" (see attached "ps-ef-grep-simple.txt"). If I take away the "respawn" keyword in the job definition file then I get a single instance of "
simple.pl"</div>
<div> </div>
<div>I can't figure out why I get 10 instances instead of just the single instance. Does it have something to do with the fact that the "simple job" runs until stop since the simple.pl daemon forks off from init? Can Upstart supervise this daemon adequately?
</div>
<div> </div>
<div>Thanks,</div>
<div>Alan</div>