Blame SOURCES/bz1751962-nfsserver-2-systemd-use-no-legend.patch

9cf66a
From ca9d2f9c2d23a9dc783e0d52419790d0d441232c Mon Sep 17 00:00:00 2001
9cf66a
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
9cf66a
Date: Tue, 24 Sep 2019 09:12:47 +0200
9cf66a
Subject: [PATCH] nfsserver: use "--no-legend" for systemctl "list-unit-files"
9cf66a
 calls
9cf66a
9cf66a
---
9cf66a
 heartbeat/nfsserver | 6 +++---
9cf66a
 1 file changed, 3 insertions(+), 3 deletions(-)
9cf66a
9cf66a
diff --git a/heartbeat/nfsserver b/heartbeat/nfsserver
9cf66a
index 8527a90f3..acef0147a 100755
9cf66a
--- a/heartbeat/nfsserver
9cf66a
+++ b/heartbeat/nfsserver
9cf66a
@@ -234,12 +234,12 @@ set_exec_mode()
9cf66a
 	fi
9cf66a
 
9cf66a
 	if which systemctl > /dev/null 2>&1; then
9cf66a
-		if systemctl list-unit-files 'nfs-*' | grep nfs-server > /dev/null; then
9cf66a
+		if systemctl --no-legend list-unit-files 'nfs-*' | grep nfs-server > /dev/null; then
9cf66a
 
9cf66a
 			##
9cf66a
 			# Attempt systemd (with nfs-lock.service).
9cf66a
 			##
9cf66a
-			if systemctl list-unit-files 'nfs-*' | grep nfs-lock > /dev/null; then
9cf66a
+			if systemctl --no-legend list-unit-files 'nfs-*' | grep nfs-lock > /dev/null; then
9cf66a
 				EXEC_MODE=2
9cf66a
 				# when using systemd, the nfs-lock service file handles nfsv3 locking daemons for us.
9cf66a
 				return 0
9cf66a
@@ -248,7 +248,7 @@ set_exec_mode()
9cf66a
 			##
9cf66a
 			# Attempt systemd (with rpc-statd.service).
9cf66a
 			##
9cf66a
-			if systemctl list-unit-files 'rpc-*' | grep rpc-statd > /dev/null; then
9cf66a
+			if systemctl --no-legend list-unit-files 'rpc-*' | grep rpc-statd > /dev/null; then
9cf66a
 				EXEC_MODE=3
9cf66a
 				return 0
9cf66a
 			fi