From a9fbf775968a68401e6384825c70ba89eab75a9b Mon Sep 17 00:00:00 2001 From: Derek Marcotte <554b8425@razorfever.net> Date: Wed, 3 Oct 2018 14:28:34 -0400 Subject: [PATCH] Fixes wrong already running/loaded messages. If you have a hyve, say gl-old, and wish to install (or perhaps start) a hyve, gl, you'll get an erroneous message: This guest appears to be already running/loaded. Use stop, destroy, or forcekill to remove zombie processes. This fixes that. --- lib/ioh-guest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ioh-guest b/lib/ioh-guest index 50bbb32..b9d63b7 100644 --- a/lib/ioh-guest +++ b/lib/ioh-guest @@ -319,7 +319,7 @@ __guest_load() { *) local wire_memory="" ;; esac # Check for loader already present as a zombie - if [ ! -z $(pgrep -f "ioh-$name") ]; then + if [ ! -z $(pgrep -xf "ioh-$name") ]; then echo "This guest appears to be already running/loaded." echo "Use stop, destroy, or forcekill to remove zombie processes." exit 1