mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add rrouter lock for edithost.sh and ipassoc.sh
This commit is contained in:
parent
9317033a4f
commit
c47bc3664e
@ -33,6 +33,13 @@ 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=$?
|
||||
|
||||
@ -89,4 +96,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
unlock_exit $? $lock $locked
|
||||
ret=$?
|
||||
releaseLockFile $lock_rr $locked_rr
|
||||
unlock_exit $ret $lock $locked
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user