From b326dd27f0fe5baa58d4b338dcedb9120c7b981d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 13 Mar 2024 23:00:16 +0100 Subject: [PATCH] Fix ynh_systemd_action --- scripts/change_url | 2 +- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 10e2ede..1f330e2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -40,7 +40,7 @@ chown "$app:$app" "$install_dir/config/secrets.yml" ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd --line_match="Listening on" +ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd ynh_systemd_action --service_name="${app}-worker" --action="start" --log_path=systemd --line_match="Schedules Loaded" #================================================= diff --git a/scripts/install b/scripts/install index a3ad488..1d270e9 100755 --- a/scripts/install +++ b/scripts/install @@ -97,7 +97,7 @@ yunohost service add "$app-worker" --description="$app worker service" #================================================= ynh_script_progression --message="Starting $app's systemd service..." --weight=1 -ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd --line_match="Listening on" +ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd ynh_systemd_action --service_name="${app}-worker" --action="start" --log_path=systemd --line_match="Schedules Loaded" #================================================= diff --git a/scripts/restore b/scripts/restore index 31728ad..cdaeeb7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -78,7 +78,7 @@ yunohost service add "$app-worker" --description="$app worker service" #================================================= ynh_script_progression --message="Starting $app's systemd service..." --weight=1 -ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd --line_match="Listening on" +ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd ynh_systemd_action --service_name="${app}-worker" --action="start" --log_path=systemd --line_match="Schedules Loaded" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 225e415..f7f3515 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,7 +103,7 @@ yunohost service add "$app-worker" --description="$app worker service" #================================================= ynh_script_progression --message="Starting $app's systemd service..." --weight=1 -ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd --line_match="Listening on" +ynh_systemd_action --service_name="${app}-app" --action="start" --log_path=systemd ynh_systemd_action --service_name="${app}-worker" --action="start" --log_path=systemd --line_match="Schedules Loaded" #=================================================