summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorAndrea Maria Piana <a.piana@77agency.com>2015-01-05 15:06:59 +0000
committerBenety Goh <benety@mongodb.com>2015-01-05 14:41:19 -0500
commite82c06607baf14a00751af681b808c3172bdeff0 (patch)
tree64a33cbaed0a4bb1e15f70961b2f3f0dcc9afe35 /rpm
parent5c3e3df015d8bdb8703accb4f24ee7657fa2ba50 (diff)
downloadmongo-e82c06607baf14a00751af681b808c3172bdeff0.tar.gz
SERVER-16720 updated awk regexp to support inline pidFilePath and dbPath syntax
Closes #899 Signed-off-by: Benety Goh <benety@mongodb.com>
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 a6257933b46..59478ce5018 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -19,8 +19,8 @@ CONFIGFILE="/etc/mongod.conf"
OPTIONS=" -f $CONFIGFILE"
SYSCONFIG="/etc/sysconfig/mongod"
-DBPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*dbpath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]'`
-PIDFILEPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]'`
+DBPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(storage\.)?dbpath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]'`
+PIDFILEPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]'`
mongod=${MONGOD-/usr/bin/mongod}