summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index 6284a38..0ea9e55 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -726,6 +726,9 @@ int main(int argc, char ** argv) {
/* run the main loop */
avahi_simple_poll_loop(simple_poll);
+ /* report stopping to systemd */
+ sd_notify(0, "STOPPING=1\nSTATUS=Stopping...");
+
/* stop http server */
MHD_stop_daemon(mhd);
@@ -763,6 +766,8 @@ fail:
if (simple_poll)
avahi_simple_poll_free(simple_poll);
+ sd_notify(0, "STATUS=Stopped. Bye!");
+
return ret;
}