remove biglock usage from ipsectunnel.sh

Biglock breaks creating VPN's when other scripts run at the
same time that also use the same biglock. These other scripts
do nothing that could harm our deployment and even multiple
vpn's can safely be created simultaniously.

(cherry picked from commit 8b412ce194)
This commit is contained in:
Remi Bergsma 2014-12-08 18:53:18 +01:00 committed by Daan Hoogland
parent 79f8d6f5cf
commit 2df7eb5ba3
1 changed files with 3 additions and 10 deletions

View File

@ -18,13 +18,6 @@
source /root/func.sh
lock="biglock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then
exit 1
fi
vpnconfdir="/etc/ipsec.d"
vpnoutmark="0x525"
vpninmark="0x524"
@ -262,7 +255,7 @@ do
p) passive=1
;;
?) usage
unlock_exit 2 $lock $locked
exit 2
;;
esac
done
@ -301,7 +294,7 @@ then
ret=$?
else
printf "Invalid action specified, must choose -A or -D to add/del tunnels\n" >&2
unlock_exit 5 $lock $locked
exit 5
fi
unlock_exit $ret $lock $locked
exit $ret