Blame SOURCES/0002-ipmitool-1.8.10-ipmievd-condrestart.patch.patch

a51664
From a82448d0a53be621e9a1f5f7dff44e4e481e174c Mon Sep 17 00:00:00 2001
a51664
From: Boris Ranto <branto@redhat.com>
a51664
Date: Fri, 6 Nov 2015 12:12:29 +0100
a51664
Subject: [PATCH 02/11] ipmitool-1.8.10-ipmievd-condrestart.patch
a51664
MIME-Version: 1.0
a51664
Content-Type: text/plain; charset=UTF-8
a51664
Content-Transfer-Encoding: 8bit
a51664
a51664
532188 -  ipmievd init script's condrestart doesn't work
a51664
Author: Ville Skyttä (ville.skytta@iki.fi)
a51664
Sent upstream as
a51664
https://sourceforge.net/tracker/?func=detail&aid=2889888&group_id=95200&atid=610552
a51664
a51664
Initscipt output tuning by Jan Safranek
a51664
a51664
Backported by: dgregor jsafrane
a51664
---
a51664
 contrib/ipmievd.init.redhat | 18 ++++++++++++------
a51664
 1 file changed, 12 insertions(+), 6 deletions(-)
a51664
a51664
diff --git a/contrib/ipmievd.init.redhat b/contrib/ipmievd.init.redhat
a51664
index 7cf9d24..71b90b9 100755
a51664
--- a/contrib/ipmievd.init.redhat
a51664
+++ b/contrib/ipmievd.init.redhat
a51664
@@ -44,24 +44,31 @@ test -r $IPMIEVD_CONFIG || { echo "$IPMIEVD_CONFIG does not exist";
a51664
 . /etc/init.d/functions
a51664
 
a51664
 start() {
a51664
-	echo "Starting ipmievd:"
a51664
+	echo -n "Starting ipmievd:"
a51664
 	if [ -f /var/lock/subsys/ipmievd ]; then
a51664
 		return 0
a51664
 	fi
a51664
 	daemon $IPMIEVD_BIN $IPMIEVD_OPTIONS
a51664
 	ret=$?
a51664
 	[ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd
a51664
+	echo
a51664
 	return $ret
a51664
 }	
a51664
 
a51664
 stop() {
a51664
-	echo "Shutting down ipmievd:"
a51664
+	echo -n "Shutting down ipmievd:"
a51664
 	killproc $IPMIEVD_BIN
a51664
 	ret=$?
a51664
 	[ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd
a51664
+	echo
a51664
 	return $ret
a51664
 }
a51664
 
a51664
+restart() {
a51664
+	stop
a51664
+	start
a51664
+}
a51664
+
a51664
 case "$1" in
a51664
     start)
a51664
 	start
a51664
@@ -72,11 +79,10 @@ case "$1" in
a51664
     status)
a51664
 	status $IPMIEVD_BIN
a51664
 	;;
a51664
-    restart|reload)
a51664
-    	stop
a51664
-	start
a51664
+    restart|reload|force-reload)
a51664
+	restart
a51664
 	;;
a51664
-    condrestart)
a51664
+    try-restart|condrestart)
a51664
 	[ -f /var/lock/subsys/ipmievd ] && restart || :
a51664
 	;;
a51664
     *)
a51664
-- 
a51664
2.1.0
a51664