ansible-legacy/roles/libvirthost/files/etc/libvirt/hooks/qemu

9 lines
139 B
Plaintext
Raw Normal View History

2019-11-02 20:35:55 +00:00
#!/bin/sh
GUEST_NAME="$1"
STATE_NAME="$2"
if [ "$STATE_NAME" = "stopped" ] && [ "$GUEST_NAME" = "rift" ]; then
systemctl suspend;
fi