class Servolux::Daemon
def pid_file=( value )
value - The PID file name or a PidFile instance.
instance.
it is used. If a name is given, then that name is used to create a PifFile
Set the PID file to the given `value`. If a PidFile instance is given, then
def pid_file=( value ) @pid_file = case value when Servolux::PidFile value when String path = File.dirname(value) fn = File.basename(value, ".pid") Servolux::PidFile.new(:name => fn, :path => path, :logger => logger) else raise ArgumentError, "#{value.inspect} cannot be used as a PID file" end end