aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvirt
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2018-01-09 21:18:05 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-10 23:55:56 +0700
commitc0edba34fec4cac2fed0723e473e1b83d2d8d01c (patch)
tree476fb104d403fb82faaf1f0837cd107d44e2b2cf /libraries/libvirt
parentd7a7a153209ee9dd3df6c2098719bd87e9a39cb4 (diff)
libraries/libvirt: Bugfix to net-destroy in rc.libvirt
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libvirt')
-rw-r--r--libraries/libvirt/rc.libvirt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/libvirt/rc.libvirt b/libraries/libvirt/rc.libvirt
index 376dcb0d9b88..8f62da5db834 100644
--- a/libraries/libvirt/rc.libvirt
+++ b/libraries/libvirt/rc.libvirt
@@ -140,7 +140,7 @@ stop_libvirtd() {
guests_managedsave
check_processor
echo "Stopping libvirtd..."
- for network in $(/usr/sbin/virsh net-list | tail -n +3 | awk '{print $1}'); do
+ for network in $(/usr/sbin/virsh net-list --name); do
/usr/sbin/virsh net-destroy "$network"
done
kill -TERM $(cat $LIBVIRTD_PIDFILE)