Do not display a huge wall of boring logs while waiting for the service to start

This commit is contained in:
Alexandre Aubin 2020-10-20 14:21:27 +02:00
parent 4d494c7e7c
commit c979d1e640

View file

@ -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