diff --git a/scripts/backup b/scripts/backup index 979b2a6..e9ccd40 100644 --- a/scripts/backup +++ b/scripts/backup @@ -84,6 +84,10 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_print_info --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 + ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +fi #================================================= # END OF SCRIPT diff --git a/scripts/change_url b/scripts/change_url index eff7469..f6d1e4c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -119,6 +119,10 @@ fi ynh_print_info --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 + ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +fi #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 55ee123..2e1b8dc 100644 --- a/scripts/install +++ b/scripts/install @@ -205,6 +205,10 @@ ynh_print_info --message="Starting a systemd service..." # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 + ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +fi #================================================= # SETUP FAIL2BAN diff --git a/scripts/restore b/scripts/restore index 3565ea3..c4a4e5a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -122,6 +122,10 @@ ynh_print_info --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 + ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +fi #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 29ee98c..93529bd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -227,6 +227,10 @@ fi ynh_print_info --message="Starting a systemd service..." ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 + ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +fi #================================================= # RELOAD NGINX