From: Steve Dickson <SteveD@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] rpcbind: exit gracefully on termination
Date: Tue, 28 Oct 2014 15:06:22 -0400 [thread overview]
Message-ID: <544FE92E.3080008@RedHat.com> (raw)
In-Reply-To: <1414156386-16427-1-git-send-email-steved@redhat.com>
On 10/24/2014 09:13 AM, Steve Dickson wrote:
> 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>
Committed....
steved.
> ---
> src/rpcbind.c | 4 +---
> 1 file changed, 1 insertion(+), 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
>
prev parent reply other threads:[~2014-10-28 19:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 13:13 [PATCH] rpcbind: exit gracefully on termination Steve Dickson
2014-10-28 19:06 ` Steve Dickson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=544FE92E.3080008@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox