Method: Uc::Status#pid

Defined in:
lib/uc/status.rb

#pidObject



23
24
25
26
27
28
29
30
31
32
# File 'lib/uc/status.rb', line 23

def pid
  pid = pid_from_file
  if pid_valid?
    return pid
  else
    logger.debug "pids holding unicorn.lock => #{fuser_pids.join(' ')}"
    logger.debug "pid from file => #{pid}"
    raise ::Uc::Error, "stale pid #{pid}"
  end
end