summaryrefslogtreecommitdiff
path: root/community/mongodb/mongodb.rc
diff options
context:
space:
mode:
Diffstat (limited to 'community/mongodb/mongodb.rc')
-rwxr-xr-xcommunity/mongodb/mongodb.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/community/mongodb/mongodb.rc b/community/mongodb/mongodb.rc
index b808a2fb0..517258f63 100755
--- a/community/mongodb/mongodb.rc
+++ b/community/mongodb/mongodb.rc
@@ -8,7 +8,7 @@ PID=`pidof /usr/bin/mongod`
case "$1" in
start)
stat_busy "Starting mongodb"
- [ -z "$PID" ] && /bin/su mongodb -s /bin/bash -c "/usr/bin/mongod --config /etc/mongodb.conf &" > /var/log/mongod 2>&1
+ [ -z "$PID" ] && /bin/su mongodb -c "/usr/bin/mongod --config /etc/mongodb.conf --fork" > /dev/null
if [ $? -gt 0 ]; then
stat_fail
else