lib/eye/patch/overrides.rb in eye-patch-0.1.6 vs lib/eye/patch/overrides.rb in eye-patch-0.1.7
- old
+ new
@@ -40,10 +40,11 @@
unless process_really_running?
error "process <#{self.pid}> not found, it may have crashed (#{check_logs_str})"
return {:error => :not_really_running}
end
- unless !self[:smart_pid] && failsafe_save_pid
+ if !self[:smart_pid] && !failsafe_save_pid
+ error "expected to manage pidfile for process <#{self.pid}>; pidfile is unwritable"
return {:error => :cant_write_pid}
end
res
end