summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-06-06 21:25:09 +0000
committerMathew Robinson <chasinglogic@gmail.com>2019-06-07 11:13:42 -0400
commit8b2879c30bcb8d8f5163ecf3050d8bdc421786c7 (patch)
tree5ef048e2874d0ca2f9f04396bbaab415e0f0c6d0 /rpm
parent41abf22263733d0dc96545b6043753d23f5851b9 (diff)
downloadmongo-8b2879c30bcb8d8f5163ecf3050d8bdc421786c7.tar.gz
SERVER-41546 mongo_killproc should not call exit
Diffstat (limited to 'rpm')
-rwxr-xr-xrpm/init.d-mongod4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 9b228203163..7f9f703abe0 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -102,7 +102,7 @@ mongo_killproc()
if [ ! -f "${pid_file}" ]; then
echo "No PID file detected, nothing to stop"
- exit 0
+ return 0
fi
# Per the man page the process name should always be the second
@@ -115,7 +115,7 @@ mongo_killproc()
if [ "($binary_name)" != "$stat_procname" ]; then
echo "PID file may have been tampered with, refusing to kill process"
echo "Expected (${binary_name}) but found ${stat_procname}"
- exit 1
+ return 1
fi
# This doesn't actually "daemonize" this process. All this function