Skip to content

Instantly share code, notes, and snippets.

@thommay
Created February 19, 2010 15:03
Show Gist options
  • Select an option

  • Save thommay/308766 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/308766 to your computer and use it in GitHub Desktop.
Bluepill.application(:couchdb) do |app|
app.process("beam") do |process|
process.start_command = "/etc/init.d/couchdb start"
process.stop_command = "/etc/init.d/couchdb stop"
process.pid_file = "/var/run/couchdb/couchdb.pid"
process.uid = "couchdb"
process.checks :flapping, :times => 2, :within => 30.seconds, :retry_in => 7.seconds
process.start_grace_time = 3.seconds
process.stop_grace_time = 5.seconds
process.restart_grace_time = 8.seconds
end
end
# sudo bluepill load couchdb.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment