summaryrefslogtreecommitdiff
path: root/src/rpcbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r--src/rpcbind.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c
index f5159c7..0c81e8c 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -269,6 +269,13 @@ main(int argc, char *argv[])
network_init();
+#ifdef SYSTEMD
+ /* Try to notify system of successful startup, regardless of whether we
+ * used systemd socket activation or not. When started from the command
+ * line, this should not hurt either.
+ */
+ sd_notify(0, "READY=1");
+#endif
my_svc_run();
syslog(LOG_ERR, "svc_run returned unexpectedly");
rpcbind_abort();