3 class ProcessCondition < Condition
4 attr_accessor :pid_file, :clean
13 valid = complain("You must specify the 'pid_file' attribute for :process_not_running") if self.pid_file.nil?
18 File.exist?(self.pid_file)
23 File.delete(self.pid_file) rescue nil