Blame SOURCES/0034-RHBZ-851416-mpathconf-display.patch

f20720
---
f20720
 multipath/mpathconf |   21 +++++++++++++++------
f20720
 1 file changed, 15 insertions(+), 6 deletions(-)
f20720
f20720
Index: multipath-tools-130222/multipath/mpathconf
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/multipath/mpathconf
f20720
+++ multipath-tools-130222/multipath/mpathconf
f20720
@@ -159,7 +159,7 @@ if [ -z "$MODULE" -o "$MODULE" = "y" ];
f20720
 fi
f20720
 
f20720
 if [ "$MULTIPATHD" = "y" ]; then
f20720
-	if service multipathd status > /dev/null ; then
f20720
+	if /bin/systemctl status multipathd.service > /dev/null 2>&1 ; then
f20720
 		HAVE_MULTIPATHD=1
f20720
 	else
f20720
 		HAVE_MULTIPATHD=0
f20720
@@ -210,8 +210,17 @@ if [ -n "$SHOW_STATUS" ]; then
f20720
 			echo "dm_multipath module is not loaded"
f20720
 		fi
f20720
 	fi
f20720
-	if [ -n "$HAVE_MULTIPATHD" ]; then
f20720
-		service multipathd status
f20720
+	if [ -z "$HAVE_MULTIPATHD" ]; then
f20720
+		if /bin/systemctl status multipathd.service > /dev/null 2>&1 ; then
f20720
+			HAVE_MULTIPATHD=1
f20720
+		else
f20720
+			HAVE_MULTIPATHD=0
f20720
+		fi
f20720
+	fi
f20720
+	if [ "$HAVE_MULTIPATHD" = 1 ]; then
f20720
+		echo "multipathd is running"
f20720
+	else
f20720
+		echo "multipathd is not running"
f20720
 	fi
f20720
 	exit 0
f20720
 fi
f20720
@@ -301,12 +310,12 @@ if [ "$ENABLE" = 1 ]; then
f20720
 		modprobe dm_multipath
f20720
 	fi
f20720
 	if [ "$HAVE_MULTIPATHD" = 0 ]; then
f20720
-		service multipathd start
f20720
+		systemctl start multipathd.service
f20720
 	fi
f20720
 elif [ "$ENABLE" = 0 ]; then
f20720
 	if [ "$HAVE_MULTIPATHD" = 1 ]; then
f20720
-		service multipathd stop
f20720
+		systemctl stop multipathd.service
f20720
 	fi
f20720
 elif [ -n "$CHANGED_CONFIG" -a "$HAVE_MULTIPATHD" = 1 ]; then
f20720
-	service multipathd reload
f20720
+	systemctl reload multipathd.service
f20720
 fi