diff options
author | Alexis Midon <amidon@servicesource.com> | 2013-04-04 20:30:09 -0700 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2014-08-07 18:14:25 -0400 |
commit | aaa8a1d71e00bde3f9783dfaf0070c214e8ad1a1 (patch) | |
tree | 84dec55cb3e7be5670754a6b83c04b49bab4ab3f | |
parent | 3e570fc232d1e678324b80e803dabba2e41da9a0 (diff) | |
download | mongo-aaa8a1d71e00bde3f9783dfaf0070c214e8ad1a1.tar.gz |
SERVER-9252 use the correct config key for pid file
(cherry picked from commit 5b762d52cc78e52061120050e2a7da571543eab0)
Signed-off-by: Ernie Hershey <ernie.hershey@10gen.com>
-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 |