summaryrefslogtreecommitdiffstats
path: root/utils/mountd/mountd.c
diff options
context:
space:
mode:
authorMantas Mikulenas <grawity@gmail.com>2012-10-15 16:08:34 -0400
committerSteve Dickson <steved@redhat.com>2012-10-15 16:08:34 -0400
commit985f89a8a87f2626583b240f7abad86d97a77596 (patch)
treeae5558e91bf74bf25cd71e4be39c589e91513f09 /utils/mountd/mountd.c
parent329c63dd7e4e76fc66e8a6058d95c59974ad7db1 (diff)
downloadnfs-utils-985f89a8a87f2626583b240f7abad86d97a77596.tar.gz
nfs-utils-985f89a8a87f2626583b240f7abad86d97a77596.tar.xz
nfs-utils-985f89a8a87f2626583b240f7abad86d97a77596.zip
utils: Return status 0 on clean exits
Some init systems actually expect daemons to return 0 on success. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mountd/mountd.c')
-rw-r--r--utils/mountd/mountd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
index bcf5080..993b6e6 100644
--- a/utils/mountd/mountd.c
+++ b/utils/mountd/mountd.c
@@ -196,7 +196,8 @@ killer (int sig)
wait_for_workers();
}
cleanup_lockfiles();
- xlog (L_FATAL, "Caught signal %d, un-registering and exiting.", sig);
+ xlog (L_NOTICE, "Caught signal %d, un-registering and exiting.", sig);
+ exit(0);
}
static void