vendor/bundle/ruby/1.8/gems/emissary-1.3.18/lib/emissary/daemon.rb
# Returns +true+ if the daemon process is currently running. Returns
# +false+ if this is not the case. The status of the process is determined
# by sending a signal to the process identified by the +pid_file+.
#
# @return [Boolean]
#
Returns +true+ if the daemon process is currently running. Returns
+false+ if this is not the case. The status of the process is determined
by sending a signal to the process identified by the +pid_file+.
Returns + true + if the daemon process is currently running . Returns + false + if this is not the case . The status of the process is determined by sending a signal to the process identified by the + pid_file + .
def alive?
      pid = retrieve_pid
      Process.kill(0, pid)
      true
    rescue Errno::ESRCH, Errno::ENOENT
      false
    rescue Errno::EACCES => err
      logger.error "You do not have access to the PID file at " \
                   "#{pid_file.inspect}: #{err.message}"
      false
    end
def alive? pid = retrieve_pid Process . kill ( 0 , pid ) true rescue Errno :: ESRCH , Errno :: ENOENT false rescue Errno :: EACCES => err logger . error "You do not have access to the PID file at " "#{pid_file.inspect}: #{err.message}" false end
Returns +true+ if the daemon process is currently running.
Returns + true + if the daemon process is currently running .
None
Boolean