diff options
author | Adam Nelson <adam@varud.com> | 2009-12-15 01:08:40 +0800 |
---|---|---|
committer | Eliot <eliot@10gen.com> | 2009-12-15 02:54:05 +0800 |
commit | e006eba3385b7de4209dd5d8ddfb3aa8d1193af6 (patch) | |
tree | 1c5c30ca7a861fd976d7c2044f02acbc797fa37c /debian | |
parent | 4818b0af41afbc8ac76972883498b7a467838941 (diff) | |
download | mongo-e006eba3385b7de4209dd5d8ddfb3aa8d1193af6.tar.gz |
Added preliminary Ubuntu upstart script
Diffstat (limited to 'debian')
-rw-r--r-- | debian/ubuntu/mongodb.conf | 13 | ||||
-rw-r--r-- | debian/ubuntu/mongodb_settings.conf | 6 |
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 |