X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2FkillSalome.py;h=2ea384b6367a296f9aaa63d6cbf55b74e5289ee0;hb=acde82d9a3d34c28032d80123aa654197f7c26a4;hp=41e2820a2ea4b7b11e59dbbdcdcd5d5078b6ec3b;hpb=718e0abe0126e5e53b3ba41fff1028efcf5bc887;p=modules%2Fkernel.git diff --git a/bin/killSalome.py b/bin/killSalome.py index 41e2820a2..2ea384b63 100755 --- a/bin/killSalome.py +++ b/bin/killSalome.py @@ -92,6 +92,19 @@ def killAllPorts(): pass pass pass + # kill ompi-server needed for MPI containers coupling + cmd = "ps -fea | grep '%s' | grep 'ompi-server' | grep -v 'grep' | awk '{print $2}'" % user + prc = commands.getoutput(cmd) + for field in prc.split(): + try: + os.kill(int(field), signal.SIGKILL) + except: + pass + pass + pass + # delete uri files needed by ompi-server + cmd = "rm -f " + os.environ['HOME'] + "/.urifile_*" + os.system(cmd) pass if __name__ == "__main__":