1
1
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:
Lennart Poettering 2014-05-17 21:11:00 +02:00
parent a349eb10d3
commit 9f7115498b
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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