summaryrefslogtreecommitdiff
path: root/debian/mongod.upstart
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mongod.upstart')
-rw-r--r--debian/mongod.upstart3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/mongod.upstart b/debian/mongod.upstart
index bc3bd2b87a4..84b599e8609 100644
--- a/debian/mongod.upstart
+++ b/debian/mongod.upstart
@@ -32,6 +32,7 @@ script
CONF=/etc/mongod.conf
DAEMON=/usr/bin/mongod
DAEMONUSER=${DAEMONUSER:-mongodb}
+ DAEMONGROUP=${DAEMONGROUP:-mongodb}
if [ -f /etc/default/mongod ]; then . /etc/default/mongod; fi
@@ -50,7 +51,7 @@ script
if [ "x$ENABLE_MONGOD" = "xyes" ]
then
exec start-stop-daemon --start \
- --chuid $DAEMONUSER \
+ --chuid $DAEMONUSER:$DAEMONGROUP \
--pidfile /var/run/mongodb.pid \
--make-pidfile \
--exec $NUMACTL $DAEMON $DAEMON_OPTS