summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/rpcbind
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-03 15:09:11 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 11:09:06 +0100
commitab4f1b220f2da29c877be90eee5e3ac09e34c060 (patch)
tree38ee775156ba6c3786577e0050eb4fac9707fc77 /meta/recipes-extended/rpcbind
parenteaa87ab47214854e3530510610af20098b84bf87 (diff)
downloadpoky-ab4f1b220f2da29c877be90eee5e3ac09e34c060.tar.gz
rpcbind: avoid entering failed status after stopping daemon
Exiting with '2' is actually expected with rpcbind, because it catches SIGTERM and exits with '2' explicitly. The related code is as follows. (void) signal(SIGTERM, terminate); /* * Catch the signal and die */ static void terminate(int dummy /*__unused*/) { close(rpcbindlockfd); unlink(_PATH_RPCBINDSOCK); unlink(RPCBINDDLOCK); syslog(LOG_ERR, "rpcbind terminating on signal. Restart with \"rpcbind -w\""); write_warmstart(); /* Dump yourself */ exit(2); } (From OE-Core rev: 1bfc6a45e7ba81d3537ea3ae8b176f5a9c206eaa) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/rpcbind')
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind/rpcbind.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
index 4de28d4ae1..33ee268441 100644
--- a/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
+++ b/meta/recipes-extended/rpcbind/rpcbind/rpcbind.service
@@ -9,6 +9,7 @@ Type=forking
9EnvironmentFile=-@SYSCONFDIR@/rpcbind.conf 9EnvironmentFile=-@SYSCONFDIR@/rpcbind.conf
10ExecStart=@SBINDIR@/rpcbind -w $RPCBIND_OPTS 10ExecStart=@SBINDIR@/rpcbind -w $RPCBIND_OPTS
11Restart=always 11Restart=always
12SuccessExitStatus=2
12 13
13[Install] 14[Install]
14WantedBy=multi-user.target 15WantedBy=multi-user.target