diff --git a/scripts/install b/scripts/install index 7af79e0..ce92324 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 --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 f205e14..3c3cfd3 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 --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 aee8a5c..638f89b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -285,14 +285,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 --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" #=================================================