]> git.meshlink.io Git - catta/commitdiff
systemd: send status message when shutting down
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 14:38:20 +0000 (16:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 14:38:20 +0000 (16:38 +0200)
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: