mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
change timeout and restart gitlab service
This commit is contained in:
parent
8533d8c8e4
commit
7fb106d35a
4 changed files with 10 additions and 3 deletions
|
@ -124,7 +124,7 @@ gitlab-ctl reconfigure
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Waiting for gitlab..." --weight=15
|
ynh_script_progression --message="Waiting for gitlab..." --weight=15
|
||||||
|
|
||||||
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600
|
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=300
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -249,6 +249,13 @@ ynh_script_progression --message="Reloading nginx web server..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --action=reload --service_name=nginx
|
ynh_systemd_action --action=reload --service_name=nginx
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTART GITLAB
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restarting gitlab..." --weight=15
|
||||||
|
|
||||||
|
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=300
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -156,7 +156,7 @@ yunohost service add "gitlab-runsvdir" --log "/var/log/$app/gitlab-rails/applica
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Waiting for gitlab..." --weight=14
|
ynh_script_progression --message="Waiting for gitlab..." --weight=14
|
||||||
|
|
||||||
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600
|
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=300
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK THE RESTORED DATA
|
# CHECK THE RESTORED DATA
|
||||||
|
|
|
@ -303,7 +303,7 @@ then
|
||||||
ynh_script_progression --message="Waiting for gitlab..." --weight=15
|
ynh_script_progression --message="Waiting for gitlab..." --weight=15
|
||||||
|
|
||||||
# Action status to just wait the service
|
# Action status to just wait the service
|
||||||
ynh_systemd_action --action=status --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600
|
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=300
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue