aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 44ecdd2..cf97b99 100755
--- a/kvmx
+++ b/kvmx
@@ -315,6 +315,10 @@ function kvmx_up {
kvmx_spice
fi
+ if [ "$run_xpra" == "1" ]; then
+ $DIRNAME/$BASENAME xpra $VM
+ fi
+
if [ "$ssh_support" == "y" ]; then
let ssh_attempts="0"
echo -n "Waiting for machine to boot..."
@@ -497,6 +501,10 @@ function kvmx_poweroff {
exit 1
fi
+ if [ "$run_xpra" == "1" ]; then
+ $DIRNAME/$BASENAME xpra $VM stop
+ fi
+
echo /usr/bin/sudo poweroff | kvmx_ssh &> /dev/null
sleep 3
kvmx_status