mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Do not display a huge wall of boring logs while waiting for the service to start
This commit is contained in:
parent
4d494c7e7c
commit
c979d1e640
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,7 @@ ynh_systemd_action() {
|
||||||
# Start the timeout and try to find line_match
|
# Start the timeout and try to find line_match
|
||||||
if [[ -n "${line_match:-}" ]]
|
if [[ -n "${line_match:-}" ]]
|
||||||
then
|
then
|
||||||
|
set +x
|
||||||
local i=0
|
local i=0
|
||||||
for i in $(seq 1 $timeout)
|
for i in $(seq 1 $timeout)
|
||||||
do
|
do
|
||||||
|
@ -176,6 +177,7 @@ ynh_systemd_action() {
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
set -x
|
||||||
if [ $i -ge 3 ]; then
|
if [ $i -ge 3 ]; then
|
||||||
echo "" >&2
|
echo "" >&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue