2009-12-14 18:08:40 +01:00
|
|
|
# Ubuntu upstart file at /etc/init/mongodb.conf
|
|
|
|
|
2010-12-10 15:38:17 +01:00
|
|
|
limit nofile 20000 20000
|
2010-08-13 16:24:00 +02:00
|
|
|
|
2009-12-14 18:08:40 +01:00
|
|
|
pre-start script
|
|
|
|
mkdir -p /var/lib/mongodb/
|
|
|
|
mkdir -p /var/log/mongodb/
|
|
|
|
end script
|
|
|
|
|
2010-02-12 17:14:29 +01:00
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [06]
|
2009-12-14 18:08:40 +01:00
|
|
|
|
2010-03-08 20:32:44 +01:00
|
|
|
script
|
|
|
|
ENABLE_MONGODB="yes"
|
|
|
|
if [ -f /etc/default/mongodb ]; then . /etc/default/mongodb; fi
|
2010-03-26 17:02:25 +01:00
|
|
|
if [ "x$ENABLE_MONGODB" = "xyes" ]; then exec start-stop-daemon --start --quiet --chuid mongodb --exec /usr/bin/mongod -- --config /etc/mongodb.conf; fi
|
2010-03-08 20:32:44 +01:00
|
|
|
end script
|