add double fork to disown child process
[god.git] / test / configs / pid / pid.god
blobe27e9844236c9c29e7edaa0fc2c81fd6e6a8cd81
1 God.watch do |w|
2   w.name = 'simple_server'
3   w.start = File.join(File.dirname(__FILE__), *%w[simple_server.rb])
4   w.stop = ''
5   w.interval = 5
6   w.grace = 2
7   w.uid = 'tom'
8   w.gid = 'tom'
9   
10   w.start_if do |start|
11     start.condition(:process_running) do |c|
12       c.running = false
13     end
14   end
15 end
17 God.load '/Users/tom/dev/god/test/configs/events/*.god'