From e006eba3385b7de4209dd5d8ddfb3aa8d1193af6 Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Tue, 15 Dec 2009 01:08:40 +0800 Subject: Added preliminary Ubuntu upstart script --- debian/ubuntu/mongodb.conf | 13 +++++++++++++ debian/ubuntu/mongodb_settings.conf | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 debian/ubuntu/mongodb.conf create mode 100644 debian/ubuntu/mongodb_settings.conf (limited to 'debian') diff --git a/debian/ubuntu/mongodb.conf b/debian/ubuntu/mongodb.conf new file mode 100644 index 00000000000..90a5e442e46 --- /dev/null +++ b/debian/ubuntu/mongodb.conf @@ -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 \ No newline at end of file diff --git a/debian/ubuntu/mongodb_settings.conf b/debian/ubuntu/mongodb_settings.conf new file mode 100644 index 00000000000..dbb83cb2dfc --- /dev/null +++ b/debian/ubuntu/mongodb_settings.conf @@ -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/ \ No newline at end of file -- cgit v1.2.1