summaryrefslogtreecommitdiff
path: root/src/timesync
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-17 21:11:00 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-18 20:52:49 +0900
commit9f7115498bac670013f6b8923f2e12366fbd13a8 (patch)
tree5380928a5ab6cf0bbdf5b247113f3c139718b1ed /src/timesync
parenta349eb10d3c3a31cd47198cbf08e4f0dfaffef1d (diff)
timesyncd: enable watchdog support
Diffstat (limited to 'src/timesync')
-rw-r--r--src/timesync/timesyncd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 33c04df933..21843363d2 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -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);