### Watch sshd at 60 seconds intervals god.watch do |w| w.name ="sshd" w.interval = 60 w.start = "#{app_root}/sshd start" w.stop = "#{app_root}/sshd stop" pid_file = File.join(pid_path, "sshd.pid") w.behavior(:clean_pid_file) do |b| b.pid_file = pid_file end w.start_if do |start| start.condition(:process_running) do |c| c.running = false c.pid_file = pid_file end end end