From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/kill-libvirtd | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 .local/bin/kill-libvirtd (limited to '.local/bin/kill-libvirtd') diff --git a/.local/bin/kill-libvirtd b/.local/bin/kill-libvirtd deleted file mode 100755 index 2ea802d..0000000 --- a/.local/bin/kill-libvirtd +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# Stop all running domains and networks, and then stop all libvirtd daemons - -# Save running domains -rundoms="$(virsh list | grep running | awk '{print $2}')" -for dom in $rundoms -do - virsh managedsave $dom -done - -# Stop network -virsh net-destroy default - -# Stop libvirtd -sudo systemctl stop libvirtd >/dev/null -sudo systemctl stop libvirtd-ro.socket >/dev/null -sudo systemctl stop libvirtd-admin.socket >/dev/null -sudo systemctl stop libvirtd.socket >/dev/null -sudo systemctl stop virtlogd >/dev/null -sudo systemctl stop virtlogd-admin.socket >/dev/null -sudo systemctl stop virtlogd.socket >/dev/null -sudo systemctl stop systemd-machined >/dev/null -- cgit v1.2.3