mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
timesyncd: enable watchdog support
This commit is contained in:
parent
a349eb10d3
commit
9f7115498b
@ -976,6 +976,8 @@ static int manager_new(Manager **ret) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
sd_event_set_watchdog(m->event, true);
|
||||
|
||||
sd_event_add_signal(m->event, &m->sigterm, SIGTERM, NULL, NULL);
|
||||
sd_event_add_signal(m->event, &m->sigint, SIGINT, NULL, NULL);
|
||||
|
||||
|
@ -19,6 +19,7 @@ ExecStart=@rootlibexecdir@/systemd-timesyncd
|
||||
CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
WatchdogSec=1min
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user