aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-12 14:19:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-12 14:19:56 -0300
commit740421ffbbbc425c1b6362c26e80a63dc412bd34 (patch)
tree2f0f13e6a53f289a98437c0103669ae7169f8547
parentcb5a07bbb7f234449311175186a85faec0d1f4bc (diff)
downloadkvmx-740421ffbbbc425c1b6362c26e80a63dc412bd34.tar.gz
kvmx-740421ffbbbc425c1b6362c26e80a63dc412bd34.tar.bz2
Check if Xephyr is running at kvmx_stop
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index bd01d21..4eba46d 100755
--- a/kvmx
+++ b/kvmx
@@ -991,6 +991,11 @@ function kvmx_xephyr {
# Close Xephyr client
function kvmx_xephyr_stop {
+ if [ ! -e "$XEPHYRFILE" ]; then
+ echo "$BASENAME: Xephyr not running for guest $VM"
+ exit 1
+ fi
+
XEPHYRPID="`cat $XEPHYRFILE`"
if [ ! -z "$XEPHYRPID" ]; then