From ac382d47b8139570b23906b6c4810c8bb55feb54 Mon Sep 17 00:00:00 2001 From: Anshul Sharma Date: Tue, 11 Apr 2017 08:07:32 +0530 Subject: [PATCH] down wait for 7 secs this will fix it. --- image/bin/my_init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/bin/my_init b/image/bin/my_init index 8fabe6b..1d6fa0c 100755 --- a/image/bin/my_init +++ b/image/bin/my_init @@ -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 down /etc/service/*") + os.system("/usr/bin/sv -w %d down /etc/service/*", KILL_PROCESS_TIMEOUT) def wait_for_runit_services(): debug("Waiting for runit services to exit...")