]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/main.c
systemd: send status message when shutting down
[catta] / avahi-daemon / main.c
index c70040602a811cd837805b0da65aff8e00c77868..18e8518b5e43c103bb741357a5efcca019c408f5 100644 (file)
@@ -1635,7 +1635,10 @@ int main(int argc, char *argv[]) {
 
         if (run_server(&config) == 0)
             r = 0;
-    }
+
+        avahi_log_info("%s "PACKAGE_VERSION" exiting.", argv0);
+        sd_notifyf(0, "STATUS=%s "PACKAGE_VERSION" exiting.", argv0);
+}
 
 finish: