Blame SOURCES/bz1128933-nfsnotify-exit-reason-support.patch

c608c9
From 566544cb98bc4e373ac75fa8c6281ef031a673ca Mon Sep 17 00:00:00 2001
c608c9
From: David Vossel <dvossel@redhat.com>
c608c9
Date: Fri, 1 Aug 2014 13:13:39 -0400
c608c9
Subject: [PATCH] High: nfsnotify: set exit reason strings in nfsnotify agent
c608c9
c608c9
---
c608c9
 heartbeat/nfsnotify | 8 ++++----
c608c9
 1 file changed, 4 insertions(+), 4 deletions(-)
c608c9
c608c9
diff --git a/heartbeat/nfsnotify b/heartbeat/nfsnotify
c608c9
index 2d0bbfc..5f72d58 100755
c608c9
--- a/heartbeat/nfsnotify
c608c9
+++ b/heartbeat/nfsnotify
c608c9
@@ -152,7 +152,7 @@ check_statd_pidfile()
c608c9
 			return $OCF_SUCCESS
c608c9
 		fi
c608c9
 
c608c9
-		ocf_log err "$(cat $pidfile) for $binary is no longer running, sm-notify needs to re-notify clients"
c608c9
+		ocf_exit_reason "$(cat $pidfile) for $binary is no longer running, sm-notify needs to re-notify clients"
c608c9
 		return $OCF_ERR_GENERIC
c608c9
 	fi
c608c9
 
c608c9
@@ -179,7 +179,7 @@ write_statd_pid()
c608c9
 			return $OCF_NOT_RUNNING;;
c608c9
 		*)
c608c9
 			rm -f "$pidfile" > /dev/null 2>&1 
c608c9
-			ocf_log err "Error encountered detecting pid status of $binary"
c608c9
+		  	ocf_exit_reason "Error encountered detecting pid status of $binary"
c608c9
 			return $OCF_ERR_GENERIC;;
c608c9
 	esac
c608c9
 }
c608c9
@@ -243,7 +243,7 @@ v3notify_start()
c608c9
 		ocf_log info "sending notifications on default source address."
c608c9
 		$SM_NOTIFY_BINARY -f $OCF_RESKEY_notify_args -P $cur_statd
c608c9
 		if [ $? -ne 0 ]; then
c608c9
-			ocf_log err "sm-notify failed, view syslog for more information."
c608c9
+			ocf_exit_reason "sm-notify execution failed, view syslog for more information"
c608c9
 			return $OCF_ERR_GENERIC
c608c9
 		fi
c608c9
 		
c608c9
@@ -269,7 +269,7 @@ v3notify_start()
c608c9
 		ocf_log info "sending notifications with source address $ip"
c608c9
 		$SM_NOTIFY_BINARY -f $OCF_RESKEY_notify_args -v $ip -P "$cur_statd"
c608c9
 		if [ $? -ne 0 ]; then
c608c9
-			ocf_log err "sm-notify with source host set to, $ip, failed. view syslog for more information"
c608c9
+			ocf_exit_reason "sm-notify with source host set to [ $ip ] failed. view syslog for more information"
c608c9
 			return $OCF_ERR_GENERIC
c608c9
 		fi
c608c9
 	done
c608c9
-- 
c608c9
1.8.4.2
c608c9