Skip to content

Commit 3b30926

Browse files
committed
Stop service before restarting socket
1 parent 6fa58fc commit 3b30926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
sudo install -o root -g root -m 0644 -D .github/workflow-templates/socket-perms.conf /etc/systemd/system/libvirtd.socket.d/socket-perms.conf
4646
sudo chmod 755 /var/lib/libvirt/images
4747
sed "s/{{USER}}/${USER}/g" < .github/workflow-templates/80-libvirt-manage.rules.tpl | sudo tee /etc/polkit-1/rules.d/80-libvirt-manage.rules > /dev/null
48-
sudo systemctl daemon-reload || echo systemctl daemon-reload failed
48+
sudo systemctl daemon-reload
49+
sudo systemctl stop libvirtd.service
4950
sudo systemctl restart libvirtd.socket || sudo journalctl --unit libvirtd.socket
5051
stat /var/run/libvirt/libvirt-sock
51-
sudo systemctl restart libvirtd.service || sudo journalctl --unit libvirtd.service
5252
5353
- name: Enable KVM group perms
5454
run: |

0 commit comments

Comments
 (0)