mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Ubuntu 20.04: restart libvirtd instead of libvirt-bin (#4301)
This commit is contained in:
parent
c7328652fd
commit
f38db8ae65
@ -592,8 +592,11 @@ class libvirtConfigUbuntu(serviceCfgBase):
|
||||
cfo.addEntry("group", "\"root\"")
|
||||
cfo.save()
|
||||
|
||||
self.syscfg.svo.stopService("libvirt-bin")
|
||||
self.syscfg.svo.enableService("libvirt-bin")
|
||||
if os.path.exists("/lib/systemd/system/libvirtd.service"):
|
||||
bash("systemctl restart libvirtd")
|
||||
else:
|
||||
self.syscfg.svo.stopService("libvirt-bin")
|
||||
self.syscfg.svo.enableService("libvirt-bin")
|
||||
if os.path.exists("/lib/systemd/system/libvirt-bin.socket"):
|
||||
bash("systemctl stop libvirt-bin.socket")
|
||||
return True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user