summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-02-12 11:14:29 -0500
committerRichard Kreuter <richard@10gen.com>2010-02-12 11:17:22 -0500
commit22530d6b64c4366d8c67edf52e83ae2003caa42d (patch)
tree65cf5e0afdfafdf9653274ea14268a07e8e76e59 /debian
parent7677986ab7c83cf477158a36cec65c16ca835d07 (diff)
downloadmongo-22530d6b64c4366d8c67edf52e83ae2003caa42d.tar.gz
Try starting or stopping mongo in all runlevels. MINOR
Diffstat (limited to 'debian')
-rw-r--r--debian/mongodb.upstart3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/mongodb.upstart b/debian/mongodb.upstart
index 6654f41b399..d317429be1f 100644
--- a/debian/mongodb.upstart
+++ b/debian/mongodb.upstart
@@ -5,6 +5,7 @@ pre-start script
mkdir -p /var/log/mongodb/
end script
-start on runlevel [345]
+start on runlevel [2345]
+stop on runlevel [06]
exec su -c "/usr/bin/mongod --config /etc/mongodb.conf" -s "/bin/sh" mongodb