Drop this file, not needed
This commit is contained in:
parent
1d3b3a62b0
commit
e53c6a3a49
1 changed files with 0 additions and 34 deletions
|
@ -1,34 +0,0 @@
|
|||
#!/bin/bash
|
||||
TYPE=$1
|
||||
NAME=$2
|
||||
STATE=$3
|
||||
|
||||
#
|
||||
# We are becoming master node
|
||||
#
|
||||
if [ $STATE == "MASTER" ]; then
|
||||
# systemctl stop kojira
|
||||
# rm -f /etc/cron.d/kojifix
|
||||
# rm -f /etc/cron.d/koji-directory-cleanup
|
||||
# rm -f /etc/cron.d/koji-gc
|
||||
# rm -f /etc/cron.d/koji-prunesigs
|
||||
logger "just became keepalived master"
|
||||
|
||||
fi
|
||||
#
|
||||
# We are becoming the backup node
|
||||
#
|
||||
if [ $STATE == "BACKUP" ]; then
|
||||
# systemctl start kojira
|
||||
# /etc/cron.d/kojifix
|
||||
# rm -f /etc/cron.d/koji-directory-cleanup
|
||||
# rm -f /etc/cron.d/koji-gc
|
||||
# rm -f /etc/cron.d/koji-prunesigs
|
||||
logger "just became keepalived backup"
|
||||
fi
|
||||
#
|
||||
# something horrible has gone wrong
|
||||
#
|
||||
if [ $STATE == "FAULT" ]; then
|
||||
logger "just had a keepalived fault"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue