Prose\UsingHost::stopInScreen PHP Метод

stopInScreen() публичный Метод

public stopInScreen ( $sessionName )
    public function stopInScreen($sessionName)
    {
        // what are we doing?
        $log = usingLog()->startAction("stop screen session '{$sessionName}' on host '{$this->args[0]}'");
        // get the process details
        $processDetails = fromHost($this->args[0])->getScreenSessionDetails($sessionName);
        // stop the process
        usingHost($this->args[0])->stopProcess($processDetails->pid);
        // all done
        $log->endAction();
    }