summaryrefslogtreecommitdiff
path: root/src/journal-remote/journal-remote.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-01 20:30:13 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 22:23:48 -0400
commita3152e7655231b94fa7b9582906fb86ab00b9c99 (patch)
tree7d8187f44f537c547e2ee62a1bab3bf0b85cfc2f /src/journal-remote/journal-remote.c
parent722b6795655149a68277b3cffeba711e1d440e5a (diff)
journal-upload: add watchdog support
Diffstat (limited to 'src/journal-remote/journal-remote.c')
-rw-r--r--src/journal-remote/journal-remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 906759b434..063d6dfa2d 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -1252,6 +1252,8 @@ int main(int argc, char **argv) {
if (remoteserver_init(&s) < 0)
return EXIT_FAILURE;
+ sd_event_set_watchdog(s.events, true);
+
log_debug("%s running as pid "PID_FMT,
program_invocation_short_name, getpid());
sd_notify(false,