10 lines
189 B
Bash
10 lines
189 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
for i in $(virsh list --state-running --name --autostart); do
|
||
|
virsh shutdown "$i"
|
||
|
echo Stopping domain "$i"
|
||
|
until virsh domstate "$i" | grep shut; do
|
||
|
sleep 0.5
|
||
|
done
|
||
|
done
|