Sha256: d04168cc9c3709f04c3ba75c1a8241b7dd6842f1ec4f4483a1e370fb6a019f4e

Contents?: true

Size: 903 Bytes

Versions: 31

Compression:

Stored size: 903 Bytes

Contents

#! /usr/bin/env ruby
require 'rubygems'
require 'bluepill'
require 'logger'

# ATTENTION:
# You must declare only one application per config when foreground mode specified
#
# http://github.com/Undev/runit-man used as example of monitored application.

# Note that this syntax supported from bluepill 0.0.50

Bluepill.application(:runit_man, :foreground => true) do
  process("runit-man") do
    pid_file        "/etc/service/runit-man/supervise/pid"

    start_command   "/usr/bin/sv start runit-man"
    stop_command    "/usr/bin/sv stop runit-man"
    restart_command "/usr/bin/sv restart runit-man"

    start_grace_time   1.seconds
    restart_grace_time 7.seconds
    stop_grace_time    7.seconds

    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

31 entries across 31 versions & 6 rubygems

Version Path
bluepill-rwgps-0.0.63 examples/new_runit_example.rb
bluepill-rwgps-0.0.62 examples/new_runit_example.rb
bluepill-rwgps-0.0.61 examples/new_runit_example.rb
cloud66-bluepill-0.0.64 examples/new_runit_example.rb
bluepill-0.0.68 examples/new_runit_example.rb
bluepill-0.0.67 examples/new_runit_example.rb
bluepill-rwgps-0.0.60 examples/new_runit_example.rb
bluepill-0.0.66 examples/new_runit_example.rb
bluepill-0.0.65 examples/new_runit_example.rb
bluepill-0.0.64 examples/new_runit_example.rb
cloud66-bluepill-0.0.63 examples/new_runit_example.rb
bluepill-0.0.63 examples/new_runit_example.rb
cloud66-bluepill-0.0.62 examples/new_runit_example.rb
bluepill-0.0.62 examples/new_runit_example.rb
bluepill-0.0.61 examples/new_runit_example.rb
kostya-bluepill-0.0.60.3 examples/new_runit_example.rb
kostya-bluepill-0.0.60.2 examples/new_runit_example.rb
kostya-bluepill-0.0.60.1 examples/new_runit_example.rb
skalar-bluepill-0.0.60.1 examples/new_runit_example.rb
bluepill-0.0.60 examples/new_runit_example.rb