aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--initd/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/initd/main.c b/initd/main.c
index 561bae6..08e314f 100644
--- a/initd/main.c
+++ b/initd/main.c
@@ -40,6 +40,9 @@ static void handle_signal(void)
supervisor_handle_exited(pid, status);
}
break;
+ case SIGTERM:
+ supervisor_set_target(TGT_SHUTDOWN);
+ break;
case SIGINT:
supervisor_set_target(TGT_REBOOT);
break;