summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index b704f1c..afb9e8f 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -720,6 +720,9 @@ int main(int argc, char ** argv) {
signal(SIGKILL, sig_callback);
signal(SIGINT, sig_callback);
+ /* report ready to systemd */
+ sd_notifyf(0, "READY=1\nSTATUS=Waiting for requests to redirect...\nMAINPID=%lu", (unsigned long) getpid());
+
/* run the main loop */
avahi_simple_poll_loop(simple_poll);