When start twice “mn”， as the port 6633 is taken by the first mn,
the second run will raise Exception, and triggers the cleanup method
defined in mininet/cleanup.py, but the cleanup doesn't cleanup the
"/usr/bin/env python /usr/local/bin/mn" process, which is added in this commit.
add cleanup of mn
I don't think this is quite the way to do it; pkill -f mn will kill anything with mn in it.
pkill -f mn
Why not just kill it? Any suggestions?
I believe Bob meant that any process name that contains "mn" will be killed. For example a process with the name "column" would also be killed by this command. You could try using the -x option which will only match if the process name exactly matches the pattern given.