lib/daemon_controller.rb
# Returns the daemon's PID, as reported by its PID file. Returns the PID
# as an integer, or nil there is no valid PID in the PID file.
#
# This method doesn't check whether the daemon's actually running.
# Use #running? if you want to check whether it's actually running.
#
# Raises SystemCallError or IOError if something went wrong during
# reading of the PID file.
Returns the daemon's PID, as reported by its PID file. Returns the PID
as an integer, or nil there is no valid PID in the PID file.

This method doesn't check whether the daemon's actually running.
Use #running. if you want to check whether it's actually running.

Raises SystemCallError or IOError if something went wrong during
reading of the PID file.
Returns the daemon ' s PID as reported by its PID file . Returns the PID as an integer or nil there is no valid PID in the PID file . This method doesn ' t check whether the daemon ' s actually running . Use #running . if you want to check whether it ' s actually running . Raises SystemCallError or IOError if something went wrong during reading of the PID file .
def pid
		@lock_file.shared_lock do
			return read_pid_file
		end
	end
def pid @lock_file . shared_lock do return read_pid_file end end
Returns the daemon's PID, as reported by its PID file.
Returns the daemon ' s PID as reported by its PID file .