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