mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-09-17 21:45:36 +03:00
timesyncd: enable watchdog support
This commit is contained in:
@@ -976,6 +976,8 @@ static int manager_new(Manager **ret) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
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->sigterm, SIGTERM, NULL, NULL);
|
||||||
sd_event_add_signal(m->event, &m->sigint, SIGINT, 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
|
CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
|
WatchdogSec=1min
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user