summaryrefslogtreecommitdiff
path: root/debian/mongodb.upstart
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-02-22 12:35:56 -0500
committerRichard Kreuter <richard@10gen.com>2010-02-22 12:35:56 -0500
commit6ebe1c95328a55d01cf2bd0feaf12a34dd922e6e (patch)
treed209c9ab879a2b3810d425cd15e642b27f4a5f2e /debian/mongodb.upstart
parentfa4eddeba7a8324505e10e2e4604a3eec803dfc6 (diff)
downloadmongo-6ebe1c95328a55d01cf2bd0feaf12a34dd922e6e.tar.gz
Use start-stop-daemon in upstart init script.
Diffstat (limited to 'debian/mongodb.upstart')
-rw-r--r--debian/mongodb.upstart3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/mongodb.upstart b/debian/mongodb.upstart
index d317429be1f..56478966238 100644
--- a/debian/mongodb.upstart
+++ b/debian/mongodb.upstart
@@ -8,4 +8,5 @@ end script
start on runlevel [2345]
stop on runlevel [06]
-exec su -c "/usr/bin/mongod --config /etc/mongodb.conf" -s "/bin/sh" mongodb
+exec start-stop-daemon --start --quiet --chuid mongodb --exec /usr/bin/mongod -- --config /etc/mongodb.conf
+