0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Use start-stop-daemon in upstart init script.

This commit is contained in:
Richard Kreuter 2010-02-22 12:35:56 -05:00
parent fa4eddeba7
commit 6ebe1c9532

View File

@ -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