From b13b47d1c04c23aad2b454ae40c0394d22d99f22 Mon Sep 17 00:00:00 2001 From: fbt Date: Tue, 14 Nov 2017 16:58:53 +0300 Subject: [PATCH] show the full service command; do not escape the pager Signed-off-by: fbt --- ssm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssm b/ssm index 75b891e..3d60b6f 100755 --- a/ssm +++ b/ssm @@ -276,7 +276,7 @@ info() { "Name" "$service_name" "Type" "$_type" "$_status_label" "$_status" - "Exec" "$service_command ${service_args[*]}" + "Exec" "${service_command[*]} ${service_args[*]}" "Respawn" "${service_respawn:-false}" ) @@ -315,7 +315,7 @@ restart() { "$0" "$service_name" start } -logs() { "${PAGER:-less}" "$service_logfile"; } +logs() { ${PAGER:-less} "$service_logfile"; } ## Status is a bit of a special case. It's talkative. status() {