1 From c3448b1536d50291dc5ca49dce5957c39403cc82 Mon Sep 17 00:00:00 2001
2 From: Bin Qian <bin.qian@windriver.com>
3 Date: Wed, 29 Aug 2018 11:00:22 -0400
4 Subject: [PATCH 1/1] avoid failing service when I/F is down
7 heartbeat/IPaddr2 | 24 ++++++------------------
8 1 file changed, 6 insertions(+), 18 deletions(-)
10 diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2
11 index 86009b9..2da5c5e 100755
12 --- a/heartbeat/IPaddr2
13 +++ b/heartbeat/IPaddr2
14 @@ -968,12 +968,8 @@ ip_start() {
18 - if [ "$OCF_RESKEY_dc" = "yes" ]; then
19 - ocf_log info "NIC $NIC is DOWN..."
22 - exit $OCF_ERR_GENERIC
24 + ocf_log info "NIC $NIC is DOWN..."
29 @@ -1037,12 +1033,8 @@ ip_start() {
33 - if [ "$OCF_RESKEY_dc" = "yes" ]; then
34 - ocf_log info "NIC $NIC is DOWN"
37 - exit $OCF_ERR_GENERIC
39 + ocf_log info "NIC $NIC is DOWN"
44 @@ -1123,12 +1115,8 @@ ip_monitor() {
48 - if [ "$OCF_RESKEY_dc" = "yes" ]; then
49 - ocf_log info "NIC $NIC is DOWN"
52 - return $OCF_NOT_RUNNING
54 + ocf_log info "NIC $NIC is DOWN"