mirror of
https://github.com/pygos/init.git
synced 2024-11-16 08:47:10 +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);
|
supervisor_handle_exited(pid, status);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SIGTERM:
|
||||||
|
supervisor_set_target(TGT_SHUTDOWN);
|
||||||
|
break;
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
supervisor_set_target(TGT_REBOOT);
|
supervisor_set_target(TGT_REBOOT);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue