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(); }
/** * Reboot * @return bool */ public function reboot() { return (bool) libvirt_domain_reboot($this->domain); }