From 0540136027e8d07f071089db3e1f1c2b9cc9d698 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 16 Dec 2014 13:03:37 -0500 Subject: rpcbind: notify systemd Always notify systemd that rpcbind is ready and running. Signed-off-by: Thorsten Kukuk Signed-off-by: Steve Dickson --- src/rpcbind.c | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- cgit v1.2.1