Sha256: 793c7e969cc65f9f19c1f2dd116a6bd4be9a0f91ad400317a7e035758cb356e5

Contents?: true

Size: 521 Bytes

Versions: 72

Compression:

Stored size: 521 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

72 entries across 72 versions & 21 rubygems

Version Path
dguettler-god-0.7.13.2 test/configs/daemon_polls/daemon_polls.god
dguettler-god-0.7.13.3 test/configs/daemon_polls/daemon_polls.god
dosire-god-0.7.10 test/configs/daemon_polls/daemon_polls.god
dosire-god-0.7.12 test/configs/daemon_polls/daemon_polls.god
dosire-god-0.7.9 test/configs/daemon_polls/daemon_polls.god
dunedain289-god-0.7.12.1 test/configs/daemon_polls/daemon_polls.god
dustin-god-0.7.7.1 test/configs/daemon_polls/daemon_polls.god
eric-god-0.7.10 test/configs/daemon_polls/daemon_polls.god
eric-god-0.7.11 test/configs/daemon_polls/daemon_polls.god
eric-god-0.7.12 test/configs/daemon_polls/daemon_polls.god
eric-god-0.7.14 test/configs/daemon_polls/daemon_polls.god
eric-god-0.7.7 test/configs/daemon_polls/daemon_polls.god
fotonauts-god-0.7.10 test/configs/daemon_polls/daemon_polls.god
fotonauts-god-0.7.12 test/configs/daemon_polls/daemon_polls.god
gohanlonllc-god-0.7.9 test/configs/daemon_polls/daemon_polls.god
gordoncww-god-0.7.11.1 test/configs/daemon_polls/daemon_polls.god
jreynolds-god-0.7.13 test/configs/daemon_polls/daemon_polls.god
jwilkins-god-0.7.9 test/configs/daemon_polls/daemon_polls.god
mathieuravaux-god-0.7.11 test/configs/daemon_polls/daemon_polls.god
mojombo-god-0.7.10 test/configs/daemon_polls/daemon_polls.god