Sha256: b285337d5fdb53478ef96119085d97b242e692cc4da39b0eda5b886161eb6712

Contents?: true

Size: 929 Bytes

Versions: 18

Compression:

Stored size: 929 Bytes

Contents

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

18 entries across 18 versions & 6 rubygems

Version Path
bluepill-0.0.46 lib/runit_example.rb
bluepill-0.0.45 lib/runit_example.rb
mwotton-bluepill-0.0.44 lib/runit_example.rb
ra-bluepill-0.0.48 lib/runit_example.rb
ra-bluepill-0.0.47 lib/runit_example.rb
ra-bluepill-0.0.46 lib/runit_example.rb
ra-bluepill-0.0.45 lib/runit_example.rb
ra-bluepill-0.0.44 lib/runit_example.rb
evented_bluepill-0.0.46 lib/runit_example.rb
bluepill-0.0.44 lib/runit_example.rb
sumskyi-bluepill-0.0.42.1 lib/runit_example.rb
sumskyi-bluepill-0.0.42.0 lib/runit_example.rb
bluepill-0.0.43 lib/runit_example.rb
bluepill-0.0.42 lib/runit_example.rb
bluepill-0.0.40 lib/runit_example.rb
dylanvaughn-bluepill-0.0.40 lib/runit_example.rb
dylanvaughn-bluepill-0.0.39 lib/runit_example.rb
bluepill-0.0.39 lib/runit_example.rb