mirror of
https://github.com/pygos/init.git
synced 2024-12-22 15:20:49 +01:00
initd: accept sigterm and simply initiate shutdown target
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
25afc0b3d0
commit
ec6264bad5
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue