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

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