Discard rrouter lock

Then we can make all the actions in sequence
This commit is contained in:
Sheng Yang 2011-12-28 17:44:50 -08:00
parent 217aceb9ef
commit 7e6bbf9b16
6 changed files with 5 additions and 14 deletions

View File

@ -48,13 +48,6 @@ then
exit 1
fi
lock_rr="rrouter"
locked_rr=$(getLockFile $lock_rr)
if [ "$locked_rr" != "1" ]
then
exit 1
fi
grep "redundant_router=1" /var/cache/cloud/cmdline > /dev/null
no_redundant=$?
@ -136,5 +129,4 @@ else
fi
ret=$?
releaseLockFile $lock_rr $locked_rr
unlock_exit $ret $lock $locked

View File

@ -1,7 +1,6 @@
#!/bin/bash
# IMPORTANT: Ordering of lock:
# biglock --> rrouter
# Only one lock is allowed: biglock
# getLockFile() parameters
# $1 lock filename

View File

@ -2,7 +2,7 @@
source /root/func.sh
lock="rrouter"
lock="biglock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then

View File

@ -2,7 +2,7 @@
source /root/func.sh
lock="rrouter"
lock="biglock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then

View File

@ -2,7 +2,7 @@
source /root/func.sh
lock="rrouter"
lock="biglock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then

View File

@ -2,7 +2,7 @@
source /root/func.sh
lock="rrouter"
lock="biglock"
locked=$(getLockFile $lock)
if [ "$locked" != "1" ]
then