aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 58f4301..5720848 100755
--- a/kvmx
+++ b/kvmx
@@ -499,6 +499,12 @@ function kvmx_suspend {
PID="`cat $PIDFILE`"
kill -STOP $PID
+
+ SPICEPID="`cat $SPICEFILE`"
+
+ if ps $SPICEPID &> /dev/null; then
+ kill $SPICEPID
+ fi
}
# Check if a guest is running