mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-22 11:01:37 +01:00
Add timeout to 5 second, to bypass when the log was written before it was catched
This commit is contained in:
parent
9e2c149643
commit
f2e84f1122
@ -51,7 +51,7 @@ config_nginx
|
|||||||
config_gitea
|
config_gitea
|
||||||
|
|
||||||
# RELOAD services
|
# RELOAD services
|
||||||
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -a restart
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -a restart -t 10
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
@ -117,7 +117,7 @@ ynh_use_logrotate "/var/log/$app"
|
|||||||
ynh_app_setting_set $app upstream_version $upstream_version
|
ynh_app_setting_set $app upstream_version $upstream_version
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
@ -70,5 +70,5 @@ yunohost service add "$app" --log /var/log/"$app"/"$app".log
|
|||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
systemctl reload nginx.service
|
systemctl reload nginx.service
|
||||||
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -178,7 +178,7 @@ ynh_app_setting_set $app upstream_version $(ynh_app_upstream_version)
|
|||||||
set_access_settings
|
set_access_settings
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
|
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
# Store the checksum with the 'INTERNAL_TOKEN' value.
|
||||||
|
Loading…
Reference in New Issue
Block a user