diff options
author | Steve Dickson <steved@redhat.com> | 2014-10-24 09:02:07 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-10-24 09:02:07 -0400 |
commit | 958d9abdb2792fc5a2b8b6fe4eea2dfcaddc2f4d (patch) | |
tree | 4c265e49b8a3d55f87028a66eb4cde22023acb5e | |
parent | 6e67b1e5e3a36649ad05829f8bae9d2a9e703594 (diff) | |
download | rpcbind-958d9abdb2792fc5a2b8b6fe4eea2dfcaddc2f4d.tar.gz |
rpcbind: exit gracefully on termination
When systemd bring rpcbind down, via an expect signal,
exit gracefully with a zero status and don't log a
meaningless message.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/rpcbind.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c index 83dbe93..1924d97 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -726,11 +726,9 @@ terminate(int dummy /*__unused*/) unlink(_PATH_RPCBINDSOCK); unlink(RPCBINDDLOCK); #ifdef WARMSTART - syslog(LOG_ERR, - "rpcbind terminating on signal. Restart with \"rpcbind -w\""); write_warmstart(); /* Dump yourself */ #endif - exit(2); + exit(0); /* exit gracefully */ } void |