Skip to content
Snippets Groups Projects
Commit f66904ab authored by cody burkard's avatar cody burkard
Browse files

ensure we retrieve a single PID when run on a cluster node

parent f6de358b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ else ...@@ -9,7 +9,7 @@ else
host=$1 host=$1
fi fi
pid=`ps ax | grep "mininet:$host$" | grep bash | awk '{print $1};'` pid=`ps ax | grep "mininet:$host$" | grep bash | grep -v mnexec | awk '{print $1};'`
if echo $pid | grep -q ' '; then if echo $pid | grep -q ' '; then
echo "Error: found multiple mininet:$host processes" echo "Error: found multiple mininet:$host processes"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment