summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorPaschalis Korosoglou <pkoro@grid.auth.gr>2015-11-01 19:43:13 +0200
committerRamon Fernandez <ramon@mongodb.com>2015-11-04 15:02:13 -0500
commit9fe07e29d8bdfb74962fac210214b1723c8dc6fc (patch)
tree4f620b2cebf9a8a8195f5b88a55c24443055a451 /rpm
parent71e4c39d173c849a705b8eb0b29769a45a59d8a0 (diff)
downloadmongo-9fe07e29d8bdfb74962fac210214b1723c8dc6fc.tar.gz
SERVER-21209 allow comments in the same line as pidfilepath
Signed-off-by: Ramon Fernandez <ramon@mongodb.com> Closes #1041
Diffstat (limited to 'rpm')
-rwxr-xr-xrpm/init.d-mongod2
-rw-r--r--rpm/init.d-mongod.suse2
2 files changed, 2 insertions, 2 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 66b3c1d8486..7ddff0be2eb 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -19,7 +19,7 @@ CONFIGFILE="/etc/mongod.conf"
OPTIONS=" -f $CONFIGFILE"
SYSCONFIG="/etc/sysconfig/mongod"
-PIDFILEPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[: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:]\"'" | awk -F'#' '{print $1}'`
mongod=${MONGOD-/usr/bin/mongod}
diff --git a/rpm/init.d-mongod.suse b/rpm/init.d-mongod.suse
index 11a12ba79bc..2d35e8032c3 100644
--- a/rpm/init.d-mongod.suse
+++ b/rpm/init.d-mongod.suse
@@ -25,7 +25,7 @@ CONFIGFILE="/etc/mongod.conf"
OPTIONS=" -f $CONFIGFILE"
SYSCONFIG="/etc/sysconfig/mongod"
-PIDFILEPATH=`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[: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:]\"'" | awk -F'#' '{print $1}'`
mongod=${MONGOD-/usr/bin/mongod}