4 class ProcessExits < EventCondition
7 valid &= complain("Attribute 'pid_file' must be specified", self) if self.watch.pid_file.nil?
12 pid = File.read(self.watch.pid_file).strip.to_i
15 EventHandler.register(pid, :proc_exit) do
19 raise EventRegistrationFailedError.new
24 pid = File.read(self.watch.pid_file).strip.to_i
25 EventHandler.deregister(pid, :proc_exit)