(self)
Run the application.
        Perform some bootstrapping, fork/daemonize if necessary.
Run the application.
        Perform some bootstrapping, fork/daemonize if necessary.
Run the application . Perform some bootstrapping fork / daemonize if necessary .
def run(self):
        """
        Run the application.
        Perform some bootstrapping, fork/daemonize if necessary.
        """
        self._parse_opts()
        self._setup_path()
                
        if self._opts.daemon:
            utils.daemonize()
            
            pid = os.getpid()
            self._pidfile = Pidfile(self._opts.pidfile)
            self._pidfile.create(pid)

        self._init_signals()
        self._configure_logging()
        self.log.info('Starting Airplayer')

        self._register_bonjour()
        self._register_media_backend()

        self._media_backend.notify_started()
        self._start_protocol_handler()
def run ( self ) : self . _parse_opts ( ) self . _setup_path ( ) if self . _opts . daemon : utils . daemonize ( ) pid = os . getpid ( ) self . _pidfile = Pidfile ( self . _opts . pidfile ) self . _pidfile . create ( pid ) self . _init_signals ( ) self . _configure_logging ( ) self . log . info ( 'Starting Airplayer' ) self . _register_bonjour ( ) self . _register_media_backend ( ) self . _media_backend . notify_started ( ) self . _start_protocol_handler ( )