summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCésar Izurieta <cesar@caih.org>2015-04-22 18:36:26 -0300
committerRamon Fernandez <ramon@mongodb.com>2016-01-07 13:48:11 -0500
commit69d50708a908841f851c165b4cd3bd8b1669d3b2 (patch)
treea4d4bf8f8d7a24bcd94da57feaf69eb7e84423b2
parent1aae0bbeb1d9c0b6a973076acba398ac1b65d0fc (diff)
downloadmongo-69d50708a908841f851c165b4cd3bd8b1669d3b2.tar.gz
SERVER-18162 Make init.d script for suse work when /var/run/mongodb doesn't exist.
Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com> (cherry picked from commit 4b5008d8f72ab3cd023aba24ae017cc63db46e8e)
-rw-r--r--rpm/init.d-mongod.suse2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpm/init.d-mongod.suse b/rpm/init.d-mongod.suse
index 836b81efa83..2d35e8032c3 100644
--- a/rpm/init.d-mongod.suse
+++ b/rpm/init.d-mongod.suse
@@ -36,6 +36,8 @@ if [ -f "$SYSCONFIG" ]; then
. "$SYSCONFIG"
fi
+PIDDIR=`dirname $PIDFILEPATH`
+
# Handle NUMA access to CPUs (SERVER-3574)
# This verifies the existence of numactl as well as testing that the command works
NUMACTL_ARGS="--interleave=all"