4 class ProcessNotRunning < Condition
5 attr_accessor :pid_file
9 valid &= complain("You must specify the 'pid_file' attribute for :process_not_running") if self.pid_file.nil?
14 return false unless File.exist?(self.pid_file)
16 pid = File.open(self.pid_file).read.strip
17 System::Process.new(pid).exists?