From 337a065b4a074a0a72b38d195875e1956136a804 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 3 Mar 2019 18:57:41 +0100 Subject: [PATCH] Print progression only after 3s --- data/helpers.d/system | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/data/helpers.d/system b/data/helpers.d/system index f319f3f7b..7061e261f 100644 --- a/data/helpers.d/system +++ b/data/helpers.d/system @@ -124,10 +124,17 @@ ynh_systemd_action() { ynh_print_info --message="The service $service_name has correctly started." break fi - echo -n "." >&2 + if [ $i -eq 3 ]; then + echo -n "Please wait, the service $service_name is ${action}ing" >&2 + fi + if [ $i -ge 3 ]; then + echo -n "." >&2 + fi sleep 1 done - echo "" >&2 + if [ $i -ge 3 ]; then + echo "" >&2 + fi if [ $i -eq $timeout ] then ynh_print_warn --message="The service $service_name didn't fully started before the timeout."