Sha256: 9977a709360bd135645db5491ff953cf91910a3c9f59b1f9f1819936b4c65ed6

Contents?: true

Size: 518 Bytes

Versions: 12

Compression:

Stored size: 518 Bytes

Contents

God.watch do |w|
  w.name = "daemon-polls"
  w.interval = 5.seconds
  w.start = 'ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb]) + ' start'
  w.stop = 'ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb]) + ' stop'
  w.pid_file = '/var/run/daemon-polls.pid'
  w.start_grace = 2.seconds
  w.log = File.join(File.dirname(__FILE__), *%w[out.log])

  w.behavior(:clean_pid_file)

  w.start_if do |start|
    start.condition(:process_running) do |c|
      c.running = false
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
resurrected_god-0.14.0 test/configs/daemon_polls/daemon_polls.god
mcproc-2016.2.20 test/configs/daemon_polls/daemon_polls.god
god-0.13.7 test/configs/daemon_polls/daemon_polls.god
god-0.13.6 test/configs/daemon_polls/daemon_polls.god
god-0.13.5 test/configs/daemon_polls/daemon_polls.god
god-0.13.4 test/configs/daemon_polls/daemon_polls.god
god-0.13.3 test/configs/daemon_polls/daemon_polls.god
god-0.13.2 test/configs/daemon_polls/daemon_polls.god
god-0.13.1 test/configs/daemon_polls/daemon_polls.god
god-0.13.0 test/configs/daemon_polls/daemon_polls.god
god-0.12.1 test/configs/daemon_polls/daemon_polls.god
god-0.12.0 test/configs/daemon_polls/daemon_polls.god