Skip to content

Commit

Permalink
Use start-stop-daemon in upstart init script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kreuter committed Feb 22, 2010
1 parent fa4edde commit 6ebe1c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian/mongodb.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ebe1c9

Please sign in to comment.