summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@suse.de>2014-12-16 13:03:37 -0500
committerSteve Dickson <steved@redhat.com>2014-12-16 13:08:27 -0500
commit0540136027e8d07f071089db3e1f1c2b9cc9d698 (patch)
tree542738dcb7a291c15a545d93dfb7ec82526f3864
parent606cd5e780b3077d31c3ccc3b360a44a08c2e172 (diff)
downloadrpcbind-0540136027e8d07f071089db3e1f1c2b9cc9d698.tar.gz
rpcbind: notify systemdrpcbind-0_2_3-rc1
Always notify systemd that rpcbind is ready and running. Signed-off-by: Thorsten Kukuk <kukuk@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
-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();