Merge pull request #429 from cdburkard/patches/cluster_m

ensure we retrieve a single PID when run on a cluster node
This commit is contained in:
lantz
2014-11-04 12:49:08 -08:00
+1 -1
View File
@@ -9,7 +9,7 @@ else
host=$1
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
echo "Error: found multiple mininet:$host processes"