--- rpcbind-0.2.0_git201103171419.orig/src/rpcbind.c +++ rpcbind-0.2.0_git201103171419/src/rpcbind.c @@ -253,7 +253,9 @@ main(int argc, char *argv[]) #endif network_init(); - +#ifdef SYSTEMD + sd_notify(0, "READY=1"); +#endif my_svc_run(); rpcbind_syslog(LOG_ERR, "svc_run returned unexpectedly"); rpcbind_abort(); --- rpcbind-0.2.0_git201103171419.orig/systemd/rpcbind.service.in +++ rpcbind-0.2.0_git201103171419/systemd/rpcbind.service.in @@ -2,6 +2,7 @@ Description=RPC Bind [Service] +Type=notify ExecStart=@bindir@/rpcbind -w -f [Install]