mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
18 lines
386 B
Bash
18 lines
386 B
Bash
#!/bin/bash
|
|
|
|
source /root/func.sh
|
|
|
|
lock="rrouter"
|
|
locked=$(getLockFile $lock)
|
|
if [ "$locked" != "1" ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
echo To fault called >> /root/keepalived.log
|
|
/root/redundant_router/disable_pubip.sh >> /root/keepalived.log 2>&1
|
|
/root/redundant_router/primary-backup.sh fault >> /root/keepalived.log 2>&1
|
|
echo Status: FAULT >> /root/keepalived.log
|
|
|
|
releaseLockFile $lock $locked
|