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:
parent
4818b0af41
commit
e006eba338
13
debian/ubuntu/mongodb.conf
vendored
Normal file
13
debian/ubuntu/mongodb.conf
vendored
Normal 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
6
debian/ubuntu/mongodb_settings.conf
vendored
Normal 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/
|
Loading…
Reference in New Issue
Block a user