From c979d1e64032d7645f7a7be831a3f93627636d98 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 20 Oct 2020 14:21:27 +0200 Subject: [PATCH] Do not display a huge wall of boring logs while waiting for the service to start --- data/helpers.d/systemd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/helpers.d/systemd b/data/helpers.d/systemd index 5c5fda852..ff1b9587c 100644 --- a/data/helpers.d/systemd +++ b/data/helpers.d/systemd @@ -159,6 +159,7 @@ ynh_systemd_action() { # Start the timeout and try to find line_match if [[ -n "${line_match:-}" ]] then + set +x local i=0 for i in $(seq 1 $timeout) do @@ -176,6 +177,7 @@ ynh_systemd_action() { fi sleep 1 done + set -x if [ $i -ge 3 ]; then echo "" >&2 fi