summaryrefslogtreecommitdiff
path: root/rpm/init.d-mongod
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-09-11 16:26:59 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2013-09-11 16:26:59 -0400
commit63e22137559e3589b49cb173ddb6cfe84e5dfb07 (patch)
tree12a8a5bed7b0cbbefd1bd43e98352a332278c9c1 /rpm/init.d-mongod
parent5b762d52cc78e52061120050e2a7da571543eab0 (diff)
downloadmongo-63e22137559e3589b49cb173ddb6cfe84e5dfb07.tar.gz
SERVER-9252 use [[:blank:]] instead of \s
Diffstat (limited to 'rpm/init.d-mongod')
-rw-r--r--rpm/init.d-mongod4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 2158ec77671..4c8cd49ef04 100644
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -22,8 +22,8 @@ SYSCONFIG="/etc/sysconfig/mongod"
# FIXME: 1.9.x has a --shutdown flag that parses the config file and
# shuts down the correct running pid, but that's unavailable in 1.8
# for now. This can go away when this script stops supporting 1.8.
-DBPATH=`awk -F= '/^dbpath\s*=\s*/{print $2}' "$CONFIGFILE"`
-PIDFILE=`awk -F= '/^pidfilepath\s*=\s*/{print $2}' "$CONFIGFILE"`
+DBPATH=`awk -F= '/^dbpath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
+PIDFILE=`awk -F= '/^pidfilepath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
mongod=${MONGOD-/usr/bin/mongod}
MONGO_USER=mongod