1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Fix ynh_check_starting

This commit is contained in:
Josué Tille 2018-02-10 19:10:17 +01:00
parent 23dacb5585
commit f279e6e986
4 changed files with 3 additions and 5 deletions

View file

@ -31,12 +31,13 @@ ynh_check_starting () {
}
echo "Starting of $service_name" >&2
systemctl restart $service_name
systemctl stop $service_name
local templog="$(mktemp)"
# Following the starting of the app in its log
tail -F -n1 "$app_log" > "$templog" &
tail -F -n0 "$app_log" > "$templog" &
# Get the PID of the tail command
local pid_tail=$!
systemctl start $service_name
local i=0
for i in `seq 1 $timeout`

View file

@ -105,4 +105,3 @@ ynh_use_logrotate "/var/log/$app"
# Reload services
ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log"
sleep 1

View file

@ -64,4 +64,3 @@ yunohost service add "$app" --log /var/log/"$app"/"$app".log
# Reload services
systemctl reload nginx.service
ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log"
sleep 1

View file

@ -108,4 +108,3 @@ set_permission
# Reload services
ynh_check_starting "INFO] Listen: http://0.0.0.0:" "/var/log/$app/gogs.log"
sleep 1