chiark / gitweb /
journal-upload: add watchdog support
[elogind.git] / src / journal-remote / journal-remote.c
index 437e0b05d1f9d1fc503d73b934ab0c95e4d3267e..063d6dfa2d2db239569e760f6bea4953376fbfa1 100644 (file)
@@ -628,8 +628,6 @@ static int dispatch_http_event(sd_event_source *event,
 
         assert(d);
 
-        log_info("%s", __func__);
-
         r = MHD_run(d->daemon);
         if (r == MHD_NO) {
                 log_error("MHD_run failed!");
@@ -1254,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,