Sha256: 7a36610efa4ead1cf61de01cfa66cca7ae9635b03c46148ebe9614d6586b8b51
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rubygems' require 'bluepill' require 'logger' # ATTENTION: # You must declare only one application per config when foreground mode specified # # http://github.com/akzhan/runit-man used as example of monitored application. Bluepill.application(:runit_man, :foreground => true) do |app| app.process("runit-man") do |process| process.pid_file = "/etc/service/runit-man/supervise/pid" process.start_command = "/usr/bin/sv start runit-man" process.stop_command = "/usr/bin/sv stop runit-man" process.restart_command = "/usr/bin/sv restart runit-man" process.start_grace_time = 1.seconds process.restart_grace_time = 7.seconds process.stop_grace_time = 7.seconds process.checks :http, :within => 30.seconds, :retry_in => 7.seconds, :every => 30.seconds, :url => 'http://localhost:4567/', :kind => :success, :pattern => /html/, :timeout => 3.seconds end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evented_bluepill-0.0.47 | lib/runit_example.rb |