public function reboot()
    {
        if (!file_exists($this->tmp_path.'/reboot.sh')) {
            file_put_contents($this->tmp_path.'/reboot.sh', '#!/bin/bash'.PHP_EOL.'/sbin/shutdown -r now');
            chmod($this->tmp_path.'/reboot.sh', 0750);
        }
        shell_exec($this->tmp_path.'/reboot.sh');
        return true;
    }
public function reboot()
    {
        if (!file_exists($this->tmp_path.'/reboot.sh')) {
            file_put_contents($this->tmp_path.'/reboot.sh', '#!/bin/bash'.PHP_EOL.'/sbin/shutdown -r now');
            chmod($this->tmp_path.'/reboot.sh', 0750);
        }
        shell_exec($this->tmp_path.'/reboot.sh');
        return true;
    }
public function reboot ( ) { if ( ! file_exists ( $ this -> tmp_path . '/reboot.sh' ) ) { file_put_contents ( $ this -> tmp_path . '/reboot.sh' , '#!/bin/bash' . PHP_EOL . '/sbin/shutdown -r now' ) ; chmod ( $ this -> tmp_path . '/reboot.sh' , 0750 ) ; } shell_exec ( $ this -> tmp_path . '/reboot.sh' ) ; return true ; }
Reboot the system

@requires root
@return void
Reboot the system