Skip to content

Commit

Permalink
Fixes wrong already running/loaded messages.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derekmarcotte committed Oct 3, 2018
1 parent 2950404 commit a9fbf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ioh-guest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9fbf77

Please sign in to comment.