From acd4789dd5239724e4e6ba222fc97c42a2f1165d Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 28 Jan 2024 20:38:03 +0100 Subject: [PATCH] Actually start the service after restart. --- scripts/restore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/restore b/scripts/restore index 312bf2b..b67a40d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,6 +65,13 @@ ynh_script_progression --message="Reloading NGINX web server and $app's service. ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# START SYSTEMD SERVICE +#================================================= +ynh_systemd_action --service_name=$app-api --action="start" --log_path="/var/log/$app/$app-api.log" --line_match="HTTP Server is listening on" + +ynh_systemd_action --service_name=$app-proxy --action="start" --log_path="/var/log/$app/$app-proxy.log" --line_match="Running server!" + #================================================= # END OF SCRIPT #=================================================