chiark / gitweb /
timesyncd: enable watchdog support
authorLennart Poettering <lennart@poettering.net>
Sat, 17 May 2014 19:11:00 +0000 (21:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 18 May 2014 11:52:49 +0000 (20:52 +0900)
src/timesync/timesyncd.c
units/systemd-timesyncd.service.in

index 33c04df..2184336 100644 (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);
 
index 158438e..1d1f486 100644 (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