From 39da36944c37d63b2b361f72d3eaedbdc5ca7bbf Mon Sep 17 00:00:00 2001 From: ofreax Date: Mon, 3 Aug 2015 19:54:27 +0200 Subject: [PATCH] - --- image/env.yaml | 2 +- image/service/keepalived/assets/notify.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/image/env.yaml b/image/env.yaml index 6fbd290..b3017d3 100644 --- a/image/env.yaml +++ b/image/env.yaml @@ -1,7 +1,7 @@ KEEPALIVED_INTERFACE: eth0 KEEPALIVED_PASSWORD: d0cker -# for electing MASTER, highest priority wins. +# For electing MASTER, highest priority wins. # to be MASTER, make 50 more than other machines KEEPALIVED_PRIORITY: 150 diff --git a/image/service/keepalived/assets/notify.sh b/image/service/keepalived/assets/notify.sh index 348de0f..9411e90 100755 --- a/image/service/keepalived/assets/notify.sh +++ b/image/service/keepalived/assets/notify.sh @@ -16,16 +16,16 @@ NAME=$2 STATE=$3 case $STATE in - "MASTER") logger "I'm the MASTER! Whup whup." + "MASTER") logger -s -t keepalived-notify "I'm the MASTER! Whup whup." exit 0 ;; - "BACKUP") logger "Ok, i'm just a backup, great." + "BACKUP") logger -s -t keepalived-notify "Ok, i'm just a backup, great." exit 0 ;; - "FAULT") logger "Fault, what ?" + "FAULT") logger -s -t keepalived-notify "Fault, what ?" exit 0 ;; - *) logger "Unknown state" + *) logger -s -t keepalived-notify "Unknown state" exit 1 ;; esac