function domain_reboot($domain)
 {
     $dom = $this->get_domain_object($domain);
     if (!$dom) {
         return false;
     }
     $tmp = libvirt_domain_reboot($dom);
     return $tmp ? $tmp : $this->_set_last_error();
 }
示例#2
0
 /**
  * Reboot
  * @return bool
  */
 public function reboot()
 {
     return (bool) libvirt_domain_reboot($this->domain);
 }