# File lib/god/conditions/process_running.rb, line 14 def test return !self.running unless File.exist?(self.pid_file) pid = File.open(self.pid_file).read.strip active = System::Process.new(pid).exists? (self.running && active) || (!self.running && !active) end