Add rrouter lock for edithost.sh and ipassoc.sh

This commit is contained in:
Sheng Yang 2011-09-14 12:15:24 -07:00
parent 9317033a4f
commit c47bc3664e

View File

@ -33,6 +33,13 @@ then
exit 1 exit 1
fi 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 grep "redundant_router=1" /var/cache/cloud/cmdline > /dev/null
no_redundant=$? no_redundant=$?
@ -89,4 +96,6 @@ else
fi fi
fi fi
unlock_exit $? $lock $locked ret=$?
releaseLockFile $lock_rr $locked_rr
unlock_exit $ret $lock $locked