summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAdam Nelson <adam@varud.com>2009-12-15 01:08:40 +0800
committerEliot <eliot@10gen.com>2009-12-15 02:54:05 +0800
commite006eba3385b7de4209dd5d8ddfb3aa8d1193af6 (patch)
tree1c5c30ca7a861fd976d7c2044f02acbc797fa37c /debian
parent4818b0af41afbc8ac76972883498b7a467838941 (diff)
downloadmongo-e006eba3385b7de4209dd5d8ddfb3aa8d1193af6.tar.gz
Added preliminary Ubuntu upstart script
Diffstat (limited to 'debian')
-rw-r--r--debian/ubuntu/mongodb.conf13
-rw-r--r--debian/ubuntu/mongodb_settings.conf6
2 files changed, 19 insertions, 0 deletions
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