Skip to content
Snippets Groups Projects
Commit f75bee62 authored by lantz's avatar lantz
Browse files

Merge pull request #429 from cdburkard/patches/cluster_m

ensure we retrieve a single PID when run on a cluster node
parents f6de358b f66904ab
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