andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

Blame SOURCES/0016-Ticket-49408-Server-allows-to-set-any-nsds5replicaid.patch

96373c
From 70d236dedadc030fd2b450d7607b395b50523538 Mon Sep 17 00:00:00 2001
96373c
From: Mark Reynolds <mreynolds@redhat.com>
96373c
Date: Thu, 19 Oct 2017 17:02:20 -0400
96373c
Subject: [PATCH] Ticket 49407 - status-dirsrv shows ellipsed lines
96373c
96373c
Bug Description:  To show the full output you have to pass "-l" to systemctl,
96373c
                  but there is no way to use this option with the current design.
96373c
96373c
Fix Description:  Just show the full lines by default, as adding options can break
96373c
                  the script's current usage.
96373c
96373c
https://pagure.io/389-ds-base/issue/49407
96373c
96373c
Reviewed by: tbordaz(Thanks!)
96373c
96373c
(cherry picked from commit 45d2fd4b50227687ad042a0e17d8dcd9e4cd3023)
96373c
---
96373c
 ldap/admin/src/scripts/status-dirsrv.in | 4 ++--
96373c
 1 file changed, 2 insertions(+), 2 deletions(-)
96373c
96373c
diff --git a/ldap/admin/src/scripts/status-dirsrv.in b/ldap/admin/src/scripts/status-dirsrv.in
96373c
index 90428990b..8e492c115 100755
96373c
--- a/ldap/admin/src/scripts/status-dirsrv.in
96373c
+++ b/ldap/admin/src/scripts/status-dirsrv.in
96373c
@@ -37,7 +37,7 @@ status_instance() {
96373c
     # Use systemctl if available.
96373c
     #
96373c
     if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
96373c
-        @bindir@/systemctl status @package_name@@$SERV_ID.service
96373c
+        @bindir@/systemctl status @package_name@@$SERV_ID.service -l
96373c
         rv=$?
96373c
         if [ $rv -ne 0 ]; then
96373c
             return 1
96373c
@@ -65,7 +65,7 @@ found=0
96373c
 if [ $# -eq 0 ]; then
96373c
     # We're reporting the status of all instances.
96373c
     ret=0
96373c
-    @bindir@/systemctl status @package_name@.target
96373c
+    @bindir@/systemctl status @package_name@.target -l
96373c
     initfiles=`get_initconfig_files $initconfig_dir` || { echo No instances found in $initconfig_dir ; exit 1 ; }
96373c
     for i in $initfiles; do
96373c
         inst=`normalize_server_id $i`
96373c
-- 
96373c
2.13.6
96373c