Skip to content

Instantly share code, notes, and snippets.

@werty1st
Forked from fredrick/couchdb.conf
Created March 1, 2016 21:02
Show Gist options
  • Save werty1st/da1e1272306fc5911269 to your computer and use it in GitHub Desktop.
Save werty1st/da1e1272306fc5911269 to your computer and use it in GitHub Desktop.
Upstart script for CouchDB
# Upstart file at /etc/init/couchdb.conf
# CouchDB
start on runlevel [2345]
stop on runlevel [06]
pre-start script
chown -R couchdb /usr/local/etc/couchdb
chown -R couchdb /usr/local/lib/couchdb
chown -R couchdb /usr/local/var/log/couchdb
end script
script
exec sudo couchdb /usr/local/bin/couchdb
end script
respawn
respawn limit 10 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment