diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2015-08-18 15:33:09 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2015-08-18 15:33:09 -0400 |
commit | add69c51cf4469ec44db4bae7d21c25da23adbe2 (patch) | |
tree | 5b88ea28adb7cd680a63335381f3f07f36ff2188 /debian/mongod.upstart | |
parent | d57ac4645f0c7d24e00fafee0b5d04dcf6481571 (diff) | |
download | mongo-add69c51cf4469ec44db4bae7d21c25da23adbe2.tar.gz |
SERVER-18581 Start process with group=mongodb in .deb packages
Diffstat (limited to 'debian/mongod.upstart')
-rw-r--r-- | debian/mongod.upstart | 3 |
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 |