9 lines
189 B
Bash
Executable file
9 lines
189 B
Bash
Executable file
#!/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
|