From d71ed00148203f88d41fbf553e0ebf2f11aa1270 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Wed, 15 Jun 2011 15:39:18 -0700 Subject: [PATCH] bug 9154: Add more log in keepalived.log --- .../systemvm/debian/config/root/redundant_router/backup.sh | 4 ++-- patches/systemvm/debian/config/root/redundant_router/fault.sh | 4 ++-- .../systemvm/debian/config/root/redundant_router/master.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/patches/systemvm/debian/config/root/redundant_router/backup.sh b/patches/systemvm/debian/config/root/redundant_router/backup.sh index 8efe190028d..989c06907a5 100644 --- a/patches/systemvm/debian/config/root/redundant_router/backup.sh +++ b/patches/systemvm/debian/config/root/redundant_router/backup.sh @@ -23,9 +23,9 @@ then fi echo To backup called >> /root/keepalived.log -/root/redundant_router/disable_pubip.sh +/root/redundant_router/disable_pubip.sh 2>1&>> /root/keepalived.log echo Disable public ip $? >> /root/keepalived.log -/root/redundant_router/primary-backup.sh backup +/root/redundant_router/primary-backup.sh backup 2>1&>> /root/keepalived.log echo Switch conntrackd mode backup $? >> /root/keepalived.log echo Status: BACKUP >> /root/keepalived.log diff --git a/patches/systemvm/debian/config/root/redundant_router/fault.sh b/patches/systemvm/debian/config/root/redundant_router/fault.sh index 62b70c43d16..3c4dccc01a8 100644 --- a/patches/systemvm/debian/config/root/redundant_router/fault.sh +++ b/patches/systemvm/debian/config/root/redundant_router/fault.sh @@ -1,6 +1,6 @@ #!/bin/bash echo To fault called >> /root/keepalived.log -/root/redundant_router/disable_pubip.sh && \ -/root/redundant_router/primary-backup.sh fault +/root/redundant_router/disable_pubip.sh 2>1&>> /root/keepalived.log && \ +/root/redundant_router/primary-backup.sh fault 2>1&>> /root/keepalived.log echo Status: FAULT >> /root/keepalived.log diff --git a/patches/systemvm/debian/config/root/redundant_router/master.sh b/patches/systemvm/debian/config/root/redundant_router/master.sh index 76253c0042f..c4ab5b80b0a 100644 --- a/patches/systemvm/debian/config/root/redundant_router/master.sh +++ b/patches/systemvm/debian/config/root/redundant_router/master.sh @@ -23,9 +23,9 @@ then fi echo To master called >> /root/keepalived.log -/root/redundant_router/enable_pubip.sh +/root/redundant_router/enable_pubip.sh 2>1&>> /root/keepalived.log echo Enable public ip $? >> /root/keepalived.log -/root/redundant_router/primary-backup.sh primary +/root/redundant_router/primary-backup.sh primary 2>1&>> /root/keepalived.log echo Switch conntrackd mode primary $? >> /root/keepalived.log echo Status: MASTER >> /root/keepalived.log