src/Remote.php
public function start()
    {
        if ($this->started) {
            return;
        }

        $auth = $this->getAuthFlag();

        $command = 'transmission-remote -C ' . $auth
            . ' -' . ($this->encryption ? 'er' : 'ep')
            . ' -p ' . $this->port
            . ' -' . ($this->upnp ? 'm' : 'M')
            . ($this->downloadPath ? ' -w ' . $this->downloadPath : '');
        $this->execute($command);

        $this->execute('transmission-remote ' . $auth . ' -l');
        if ($this->getStatus() == 1) {
            $this->execute('transmission-daemon');
        }

        $this->started = true;
    }
public function start()
    {
        if ($this->started) {
            return;
        }

        $auth = $this->getAuthFlag();

        $command = 'transmission-remote -C ' . $auth
            . ' -' . ($this->encryption ? 'er' : 'ep')
            . ' -p ' . $this->port
            . ' -' . ($this->upnp ? 'm' : 'M')
            . ($this->downloadPath ? ' -w ' . $this->downloadPath : '');
        $this->execute($command);

        $this->execute('transmission-remote ' . $auth . ' -l');
        if ($this->getStatus() == 1) {
            $this->execute('transmission-daemon');
        }

        $this->started = true;
    }
public function start ( ) { if ( $ this -> started ) { return ; } $ auth = $ this -> getAuthFlag ( ) ; $ command = 'transmission-remote -C ' . $ auth . ' -' . ( $ this -> encryption ? 'er' : 'ep' ) . ' -p ' . $ this -> port . ' -' . ( $ this -> upnp ? 'm' : 'M' ) . ( $ this -> downloadPath ? ' -w ' . $ this -> downloadPath : '' ) ; $ this -> execute ( $ command ) ; $ this -> execute ( 'transmission-remote ' . $ auth . ' -l' ) ; if ( $ this -> getStatus ( ) == 1 ) { $ this -> execute ( 'transmission-daemon' ) ; } $ this -> started = true ; }
Starts the daemon.
Starts the daemon .