This commit is contained in:
Bertrand Gouny 2017-07-13 12:32:31 +02:00
parent 05e32fe330
commit f189b038b4
1 changed files with 4 additions and 4 deletions

View File

@ -16,16 +16,16 @@ NAME=$2
STATE=$3
case $STATE in
"MASTER") logger -s -t keepalived-notify "I'm the MASTER! Whup whup."
"MASTER") echo "I'm the MASTER! Whup whup." > /proc/1/fd/1
exit 0
;;
"BACKUP") logger -s -t keepalived-notify "Ok, i'm just a backup, great."
"BACKUP") echo "Ok, i'm just a backup, great." > /proc/1/fd/1
exit 0
;;
"FAULT") logger -s -t keepalived-notify "Fault, what ?"
"FAULT") echo "Fault, what ?" > /proc/1/fd/1
exit 0
;;
*) logger -s -t keepalived-notify "Unknown state"
*) echo "Unknown state" > /proc/1/fd/1
exit 1
;;
esac