aboutsummaryrefslogtreecommitdiff
path: root/src/rc/openrc-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/openrc-init.c')
-rw-r--r--src/rc/openrc-init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c
index 621c81ea..8abe0dd6 100644
--- a/src/rc/openrc-init.c
+++ b/src/rc/openrc-init.c
@@ -96,6 +96,11 @@ static void handle_shutdown(const char *runlevel, int cmd)
pid = do_openrc(runlevel);
while (waitpid(pid, NULL, 0) != pid);
+ printf("Sending the final term signal\n");
+ kill(-1, SIGTERM);
+ sleep(3);
+ printf("Sending the final kill signal\n");
+ kill(-1, SIGKILL);
sync();
reboot(cmd);
}