Skip to content

Instantly share code, notes, and snippets.

@samlown
Created July 18, 2012 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samlown/3135230 to your computer and use it in GitHub Desktop.
Save samlown/3135230 to your computer and use it in GitHub Desktop.
CouchDB 1.2 Upstart Config
# 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 su 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