Apparently, this is the desired behavior. There is a test for this exact
case:

        /* Check that we can handle the running process of a respawn job
         * exiting before the pre-stop process finishes.  This should
         * mark the job to be respawned when the pre-stop script finishes
         * instead of making any state change.
         */
        TEST_FEATURE ("with respawn of running while pre-stop process");

I don't understand how this is beneficial, though. Isn't pre-stop the
right way to stop a process that does not correctly reacts to signals?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/568288

Title:
  init: main process can respawn even when the job is stopping

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/568288/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to