Suppress the status reports from "sv -w"

This commit is contained in:
Xiangmin Jiao
2017-04-22 20:46:36 -04:00
committed by GitHub
parent f012793a75
commit b2c329af51

View File

@@ -247,7 +247,7 @@ def wait_for_runit_or_interrupt(pid):
def shutdown_runit_services(quiet = False):
if not quiet:
debug("Begin shutting down runit services...")
os.system("/usr/bin/sv -w %d down /etc/service/*" % KILL_PROCESS_TIMEOUT)
os.system("/usr/bin/sv -w %d down /etc/service/* > /dev/null" % KILL_PROCESS_TIMEOUT)
def wait_for_runit_services():
debug("Waiting for runit services to exit...")