From: Silvio Rhatto Date: Tue, 1 Aug 2017 13:24:41 +0000 (-0300) Subject: Run spice if run_spice_client is set and box already running X-Git-Tag: 0.1.0~412 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7249f8ba3d4387c265c278d3d0cf1b1588eec9b9;p=kvmx.git Run spice if run_spice_client is set and box already running --- diff --git a/kvmx b/kvmx index 463f892..a670f55 100755 --- a/kvmx +++ b/kvmx @@ -250,7 +250,13 @@ function kvmx_up { exit elif kvmx_running; then echo "$BASENAME: guest $VM is already running" - exit 1 + + if [ "$run_spice_client" == "1" ]; then + kvmx spice $VM + exit + else + exit 1 + fi fi if [ ! -z "$shared_folder" ]; then