diff options
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |