4 class ProcessNotRunning < ProcessCondition
6 return false unless super
7 pid = File.open(self.pid_file).read.strip
13 def process_running?(pid)
14 cmd_name = RUBY_PLATFORM =~ /solaris/i ? "args" : "command"
15 ps_output = `ps -o #{cmd_name}= -p #{pid}`
16 !ps_output.strip.empty?