nspawn: turn on watchdog logic for nspawn too

It's a long-running daemon, and it's easy to enable, hence do it.
This commit is contained in:
Lennart Poettering 2017-12-07 11:58:25 +01:00
parent 90d7464d83
commit 8fd010bb1b
2 changed files with 3 additions and 0 deletions

View File

@ -3642,6 +3642,8 @@ static int run(int master,
if (r < 0)
return log_error_errno(r, "Failed to get default event source: %m");
(void) sd_event_set_watchdog(event, true);
if (bus) {
r = sd_bus_attach_event(bus, event, 0);
if (r < 0)

View File

@ -21,6 +21,7 @@ KillMode=mixed
Type=notify
RestartForceExitStatus=133
SuccessExitStatus=133
WatchdogSec=3min
Slice=machine.slice
Delegate=yes
TasksMax=16384