diff options
author | Alexis Midon <amidon@servicesource.com> | 2013-04-04 20:30:09 -0700 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2013-09-11 16:20:16 -0400 |
commit | 5b762d52cc78e52061120050e2a7da571543eab0 (patch) | |
tree | 97959397812cff77dd4aa10b0a185aafbb5132e7 /rpm | |
parent | 5e15f8978b1456a2b8d120b741a22d43e07321b3 (diff) | |
download | mongo-5b762d52cc78e52061120050e2a7da571543eab0.tar.gz |
SERVER-9252 use the correct config key for pid file
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/init.d-mongod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod index 376f82a33a2..2158ec77671 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=/{print $2}' "$CONFIGFILE"` -PIDFILE=`awk -F= '/^dbpath\s=\s/{print $2}' "$CONFIGFILE"` +DBPATH=`awk -F= '/^dbpath\s*=\s*/{print $2}' "$CONFIGFILE"` +PIDFILE=`awk -F= '/^pidfilepath\s*=\s*/{print $2}' "$CONFIGFILE"` mongod=${MONGOD-/usr/bin/mongod} MONGO_USER=mongod |