From e5f1e079d6f6d41a9bd4a28ec5755c2236aada36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 16 Feb 2019 13:43:04 +0100 Subject: [PATCH] Add sleep after service start --- scripts/change_url | 1 + scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 4 files changed, 4 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 64f6146..87eea15 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -51,6 +51,7 @@ config_gitea # RELOAD services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" -a restart +sleep 1 # Store the checksum with the 'INTERNAL_TOKEN' value. # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed diff --git a/scripts/install b/scripts/install index 0821617..a31fd41 100644 --- a/scripts/install +++ b/scripts/install @@ -114,6 +114,7 @@ ynh_use_logrotate "/var/log/$app" # Reload services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" +sleep 1 # Store the checksum with the 'INTERNAL_TOKEN' value. # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed diff --git a/scripts/restore b/scripts/restore index 80b5d93..c13cf0d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -70,3 +70,4 @@ yunohost service add "$app" --log /var/log/"$app"/"$app".log # Reload services systemctl reload nginx.service ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" +sleep 1 diff --git a/scripts/upgrade b/scripts/upgrade index 5874ff2..ed849fc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,6 +111,7 @@ set_access_settings # Reload services ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "systemd" +sleep 1 # Store the checksum with the 'INTERNAL_TOKEN' value. # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed