We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c732865 commit f38db8aCopy full SHA for f38db8a
python/lib/cloudutils/serviceConfig.py
@@ -592,8 +592,11 @@ def config(self):
592
cfo.addEntry("group", "\"root\"")
593
cfo.save()
594
595
- self.syscfg.svo.stopService("libvirt-bin")
596
- self.syscfg.svo.enableService("libvirt-bin")
+ if os.path.exists("/lib/systemd/system/libvirtd.service"):
+ bash("systemctl restart libvirtd")
597
+ else:
598
+ self.syscfg.svo.stopService("libvirt-bin")
599
+ self.syscfg.svo.enableService("libvirt-bin")
600
if os.path.exists("/lib/systemd/system/libvirt-bin.socket"):
601
bash("systemctl stop libvirt-bin.socket")
602
return True
0 commit comments