** Description changed: Binary package hint: runit - When bringing the system down to single user mode (with telinit 1), the - runsvdir program is terminated (presumably with all the services running - under it?), but then respawned. The end result is that when in single - user mode, all the services managed by runit are still running. + [Impact] + Because runit uses an upstart stanza (stop on shutdown) which does not exist it will not be termineted when switching to single user mode and is just left running. - I think that the right thing to do when bringing the system down to - single user mode would be to stop all the services running under runit - (with the "sv x" command), then terminate the runsv program itself. At - least, all the services under runit shouldn't stay up when in single - user mode. + [Test Case] + 1. Install runit and add the directory test to /etc/service. + 3. Add a script called 'run' and a script called 'finish' to this directory. Add a line 'echo run > /test; sleep 10000' and 'echo finish > /test' to run and finish respectively, then make them executable. + 4. When run is marked executable, runsvdir will start it, check with pstree -a to see the runsvdir process tree and run somewhere beneath. Observe that /test contains 'run'. + 5. Execute the command 'sudo telinit 1' and wait for the single user command prompt. + 6. Observe that pstree -a will still show runsvdir, runsv and run to be running. Also observe that /test will not contain 'finish', which means that runsv has never been told that runsvdir is going to terminate. + + runit has not been restarted, it has never been terminated in the first + place. It needs a correct upstart configuration to even try to terminate + processes graceful. Furthermore, runsvdir expects SIGHUP to correctly + shutdown all supervised services. + + [Regression potential] + IMO small, unless someone came to rely on the broken behaviour.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/315541 Title: runit event.d file should stop service in single user mode To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/runit/+bug/315541/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
