chiark / gitweb /
event: hook up sd-event with the service watchdog logic
[elogind.git] / src / hostname / hostnamed.c
index f7ae50dcd8a4aca9ed711bd2afe0caa9e9dee3e8..ece2b41671114f3402eeb19f7318f782fc527b01 100644 (file)
@@ -627,6 +627,8 @@ int main(int argc, char *argv[]) {
                 goto finish;
         }
 
+        sd_event_set_watchdog(event, true);
+
         r = connect_bus(&context, event, &bus);
         if (r < 0)
                 goto finish;