From a9eb4cbb47598b26d53631bbf3c4bdb81e785185 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Jul 2010 16:38:20 +0200 Subject: [PATCH] systemd: send status message when shutting down --- avahi-daemon/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index c700406..18e8518 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -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: -- 2.39.5