From: Silvio Rhatto Date: Fri, 12 May 2017 17:19:56 +0000 (-0300) Subject: Check if Xephyr is running at kvmx_stop X-Git-Tag: 0.1.0~433 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=740421ffbbbc425c1b6362c26e80a63dc412bd34;p=kvmx.git Check if Xephyr is running at kvmx_stop --- 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