summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorCésar Izurieta <cesar@caih.org>2015-04-22 18:36:26 -0300
committerErnie Hershey <ernie.hershey@10gen.com>2015-04-22 18:12:19 -0400
commit4b5008d8f72ab3cd023aba24ae017cc63db46e8e (patch)
tree28ae56fe2c1aee20779f3efeef5c4844461793ee /rpm
parent33ef05ce2d71107533d283e6d2d31c34b01d33b7 (diff)
downloadmongo-4b5008d8f72ab3cd023aba24ae017cc63db46e8e.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>
Diffstat (limited to 'rpm')
-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 b2c7eb20db5..426f06aa104 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"