Ubuntu 20.04: restart libvirtd instead of libvirt-bin (#4301)

This commit is contained in:
Wei Zhou 2020-09-04 09:27:58 +02:00 committed by GitHub
parent c7328652fd
commit f38db8ae65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,6 +592,9 @@ class libvirtConfigUbuntu(serviceCfgBase):
cfo.addEntry("group", "\"root\"")
cfo.save()
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"):