# File lib/daemons/pid.rb, line 6 def Pid.running?(pid, additional = nil) output = `ps ax` return (/#{pid} / =~ output and (additional ? /#{additional}/ =~ output : true)) end