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

Added preliminary Ubuntu upstart script

This commit is contained in:
Adam Nelson 2009-12-15 01:08:40 +08:00 committed by Eliot
parent 4818b0af41
commit e006eba338
2 changed files with 19 additions and 0 deletions

13
debian/ubuntu/mongodb.conf vendored Normal file
View File

@ -0,0 +1,13 @@
# Ubuntu upstart file at /etc/init/mongodb.conf
# Presumes installation of mongodb is in /usr/local/mongodb/
pre-start script
mkdir -p /var/lib/mongodb/
mkdir -p /var/log/mongodb/
end script
start on runlevel [345]
exec /usr/local/mongodb/bin/mongod --config /usr/local/mongodb/mongodb_settings.conf
respawn

6
debian/ubuntu/mongodb_settings.conf vendored Normal file
View File

@ -0,0 +1,6 @@
# This is an example config file for MongoDB to be located at /usr/local/mongodb/mongodb_settings.conf
# and used by /etc/init/mongodb.conf
logappend = true
logpath = /var/log/mongodb/mongod.log
dbpath = /var/lib/mongodb/