From cc8796bfb77619250ba009f2f2bb54b40bb925bd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 25 Jan 2021 20:06:57 +0100 Subject: [PATCH] Add logs --- scripts/install | 4 ++-- scripts/restore | 6 +++--- scripts/upgrade | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 0b67811..252ee13 100755 --- a/scripts/install +++ b/scripts/install @@ -266,7 +266,7 @@ setfacl -R -m user:turnserver:rwX /var/log/$app ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" -yunohost service add coturn-$app --description="Coturn TURN server" --needs_exposed_ports $turnserver_tls_port +yunohost service add coturn-$app --description="Coturn TURN server" --log="/var/log/$app/turnserver.log" --needs_exposed_ports $turnserver_tls_port #================================================= # START SYSTEMD SERVICE @@ -275,7 +275,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" -ynh_systemd_action --service_name=coturn-$app.service --action=restart +ynh_systemd_action --service_name=coturn-$app.service --action=restart --log_path="/var/log/$app/turnserver.log" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 5687edc..6fae177 100755 --- a/scripts/restore +++ b/scripts/restore @@ -96,15 +96,15 @@ systemctl enable coturn-$app.service --quiet ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" -yunohost service add coturn-$app --description="Coturn TURN server" --needs_exposed_ports $turnserver_tls_port +yunohost service add coturn-$app --description="Coturn TURN server" --log="/var/log/$app/turnserver.log" --needs_exposed_ports $turnserver_tls_port #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=3 -ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log" -yunohost service add coturn-$app --needs_exposed_ports $turnserver_tls_port +ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=coturn-$app.service --action=restart --log_path="/var/log/$app/turnserver.log" #================================================= # CREATE A DH FILE diff --git a/scripts/upgrade b/scripts/upgrade index e00c737..4ce33f6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -279,14 +279,14 @@ ynh_use_logrotate --non-append ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" -yunohost service add coturn-$app --description="Coturn TURN server" --needs_exposed_ports $turnserver_tls_port +yunohost service add coturn-$app --description="Coturn TURN server" --log="/var/log/$app/turnserver.log" --needs_exposed_ports $turnserver_tls_port #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=coturn-$app.service --action=restart +ynh_systemd_action --service_name=coturn-$app.service --action=restart --log_path="/var/log/$app/turnserver.log" ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" #=================================================