summaryrefslogtreecommitdiff
path: root/rpm/init.d-mongod
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/init.d-mongod')
-rwxr-xr-xrpm/init.d-mongod2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index fd77af305a2..56539ef4d42 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -38,7 +38,7 @@ else
fi
# things from mongod.conf get there by mongod reading it
-PIDFILEPATH="`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]"' | awk -F'#' '{print $1}'`"
+PIDFILEPATH="`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' \"$CONFIGFILE\" | tr -d \"[:blank:]\\"'\" | awk -F'#' '{print $1}'`"
PIDDIR=`dirname $PIDFILEPATH`
start()