From c02516eefd254a6ca63dc24af991cb42b097dfd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 5 Sep 2023 14:01:32 +0200 Subject: [PATCH] Fix ynh_systemd_action: log_path is now /var/log/$app/$app.log, the default. --- scripts/change_url | 4 ++-- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index d908eee..73e78a5 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -77,7 +77,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd +ynh_systemd_action --service_name=$app --action="stop" #================================================= # MODIFY URL IN NGINX CONF @@ -132,7 +132,7 @@ chown $app:$app "$final_path/ihatemoney.cfg" ynh_script_progression --message="Starting a systemd service..." --weight=5 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd +ynh_systemd_action --service_name=$app --action="start" #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index a5114bf..0e813d4 100755 --- a/scripts/install +++ b/scripts/install @@ -161,7 +161,7 @@ yunohost service add $app --description="$app daemon for IHateMoney" --log=syste ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Listening at" +ynh_systemd_action --service_name=$app --action="start" --line_match="Listening at" # line_match isn't enough because ihatemoney may stop if database upgrades for _ in {1..20}; do diff --git a/scripts/restore b/scripts/restore index 90f73fe..28ce352 100755 --- a/scripts/restore +++ b/scripts/restore @@ -114,7 +114,7 @@ yunohost service add $app --description="$app daemon for IHateMoney" --log=syste #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Listening at" +ynh_systemd_action --service_name=$app --action="start" --line_match="Listening at" # line_match isn't enough because ihatemoney may stop if database upgrades for _ in {1..20}; do diff --git a/scripts/upgrade b/scripts/upgrade index 85c9c91..2aed5eb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -214,7 +214,7 @@ yunohost service add $app --description="$app daemon for IHateMoney" --log=syste #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Listening at" +ynh_systemd_action --service_name=$app --action="start" --line_match="Listening at" # line_match isn't enough because ihatemoney may stop if database upgrades for _ in {1..20}; do