aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index ea21eeb..a723a2d 100755
--- a/kvmx
+++ b/kvmx
@@ -637,6 +637,14 @@ function kvmx_stop {
fi
}
+# Kill a guest
+function kvmx_kill {
+ if kvmx_running; then
+ PID="`cat $PIDFILE`"
+ kill -9 $PID
+ fi
+}
+
# Destroy a guest
function kvmx_destroy {
kvmx_stop