amoralej / rpms / 389-ds-base

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

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

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