mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 20:38:58 +00:00
Merge pull request #507 from tgpfeiffer/fix/506-escalate-term
use `sv force-stop` instead of `sv down` to stop services
This commit is contained in:
@@ -303,7 +303,7 @@ def wait_for_runit_or_interrupt(pid):
|
|||||||
def shutdown_runit_services(quiet=False):
|
def shutdown_runit_services(quiet=False):
|
||||||
if not quiet:
|
if not quiet:
|
||||||
debug("Begin shutting down runit services...")
|
debug("Begin shutting down runit services...")
|
||||||
os.system("/usr/bin/sv -w %d down /etc/service/* > /dev/null" % KILL_PROCESS_TIMEOUT)
|
os.system("/usr/bin/sv -w %d force-stop /etc/service/* > /dev/null" % KILL_PROCESS_TIMEOUT)
|
||||||
|
|
||||||
|
|
||||||
def wait_for_runit_services():
|
def wait_for_runit_services():
|
||||||
|
|||||||
Reference in New Issue
Block a user