class Servolux::Daemon
def wait_for_startup
def wait_for_startup logger.debug "Waiting for #{name.inspect} to startup." started = wait_for { rv = started? err = @piper.gets raise StartupError, "Child raised error: #{err.inspect}", err.backtrace unless err.nil? rv } raise Timeout, "#{name.inspect} failed to startup in a timely fashion. " \ "The timeout is set at #{timeout} seconds." unless started logger.info 'Server has daemonized.' ensure @piper.close end