mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Print progression only after 3s
This commit is contained in:
parent
12c61eeb65
commit
337a065b4a
1 changed files with 9 additions and 2 deletions
|
@ -124,10 +124,17 @@ ynh_systemd_action() {
|
||||||
ynh_print_info --message="The service $service_name has correctly started."
|
ynh_print_info --message="The service $service_name has correctly started."
|
||||||
break
|
break
|
||||||
fi
|
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
|
sleep 1
|
||||||
done
|
done
|
||||||
echo "" >&2
|
if [ $i -ge 3 ]; then
|
||||||
|
echo "" >&2
|
||||||
|
fi
|
||||||
if [ $i -eq $timeout ]
|
if [ $i -eq $timeout ]
|
||||||
then
|
then
|
||||||
ynh_print_warn --message="The service $service_name didn't fully started before the timeout."
|
ynh_print_warn --message="The service $service_name didn't fully started before the timeout."
|
||||||
|
|
Loading…
Add table
Reference in a new issue