From a1508536fc6e1d31692e42945a7bc8191892615f 2016-03-11 08:50:51 From: Filip Pytloun Date: 2016-03-11 08:50:51 Subject: [PATCH] Enhance cleanup by killing processes running in endpoint --- diff --git a/functions.sh b/functions.sh index 95f8480..e94a42c 100644 --- a/functions.sh +++ b/functions.sh @@ -2,6 +2,10 @@ cleanup (){ # Clean up all temporary mount points set +x set +e + echo "killing processes using mount point ..." + fuser -k $R + sleep 3 + fuser -9 -k -v $R echo "removing temporary mount points ..." umount -l $R/proc 2> /dev/null umount -l $R/sys 2> /dev/null