mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Log an error when removing keepalived.strikes file and it doesn't exit.
This commit is contained in:
parent
40eb579115
commit
ddbc565bc4
@ -35,7 +35,12 @@ then
|
|||||||
s=$(($s+1))
|
s=$(($s+1))
|
||||||
echo $s > $STRIKE_FILE
|
echo $s > $STRIKE_FILE
|
||||||
else
|
else
|
||||||
rm $STRIKE_FILE
|
if [ -e $STRIKE_FILE ]
|
||||||
|
then
|
||||||
|
rm $STRIKE_FILE
|
||||||
|
else
|
||||||
|
echo keepalived.strikes file does not exist! >> $ROUTER_LOG
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#3 strikes rule
|
#3 strikes rule
|
||||||
if [ $s -gt 2 ]
|
if [ $s -gt 2 ]
|
||||||
|
|||||||
@ -16,8 +16,8 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
ROUTER_BIN_PATH=/ramdisk/rrouter
|
||||||
STRIKE_FILE="[RROUTER_BIN_PATH]/keepalived.strikes"
|
STRIKE_FILE="$ROUTER_BIN_PATH/keepalived.strikes"
|
||||||
|
|
||||||
if [ -e [RROUTER_BIN_PATH]/keepalived.ts2 ]
|
if [ -e [RROUTER_BIN_PATH]/keepalived.ts2 ]
|
||||||
then
|
then
|
||||||
@ -34,7 +34,12 @@ then
|
|||||||
s=$(($s+1))
|
s=$(($s+1))
|
||||||
echo $s > $STRIKE_FILE
|
echo $s > $STRIKE_FILE
|
||||||
else
|
else
|
||||||
rm $STRIKE_FILE
|
if [ -e $STRIKE_FILE ]
|
||||||
|
then
|
||||||
|
rm $STRIKE_FILE
|
||||||
|
else
|
||||||
|
echo keepalived.strikes file does not exist! >> $ROUTER_LOG
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#3 strikes rule
|
#3 strikes rule
|
||||||
if [ $s -gt 2 ]
|
if [ $s -gt 2 ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user