timesyncd: enable watchdog support

This commit is contained in:
Lennart Poettering
2014-05-18 20:52:49 +09:00
parent a349eb10d3
commit 9f7115498b
2 changed files with 3 additions and 0 deletions
+2
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);
+1
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