mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
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:
parent
90d7464d83
commit
8fd010bb1b
@ -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)
|
||||
|
@ -21,6 +21,7 @@ KillMode=mixed
|
||||
Type=notify
|
||||
RestartForceExitStatus=133
|
||||
SuccessExitStatus=133
|
||||
WatchdogSec=3min
|
||||
Slice=machine.slice
|
||||
Delegate=yes
|
||||
TasksMax=16384
|
||||
|
Loading…
Reference in New Issue
Block a user