From: Silvio Rhatto Date: Fri, 22 Sep 2017 14:09:59 +0000 (-0300) Subject: Better process check at kvmx_running X-Git-Tag: 0.1.0~392 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f75a8191d518fda5fab1880c4957aa72cd92b836;p=kvmx.git Better process check at kvmx_running --- diff --git a/kvmx b/kvmx index d52cc8a..ae554bb 100755 --- a/kvmx +++ b/kvmx @@ -519,7 +519,11 @@ function kvmx_running { return 1 fi - ps $PID &> /dev/null + # Simpler check + #ps $PID &> /dev/null + + # Better check were process should match a qemu binary + ps -o command $PID | grep -q '^qemu' return $? }