1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Monitor systemd instead of log file

This commit is contained in:
tituspijean 2020-11-08 18:44:16 +01:00
parent 50a26572ee
commit 552ee2b03b
3 changed files with 6 additions and 6 deletions

View file

@ -92,7 +92,7 @@ ynh_system_user_create --username=$app
# Load services once to generate system.xml
systemctl enable jellyfin
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete"
ynh_systemd_action --service_name=$app --action="stop"
# Port config
@ -135,7 +135,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete"
#=================================================
# SETUP SSOWAT

View file

@ -91,8 +91,8 @@ ynh_install_extra_app_dependencies --repo="https://repo.jellyfin.org/debian $( l
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=2
ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" 2>/dev/null
ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null
ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service" 2>/dev/null
ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" 2>/dev/null
systemctl enable $app.service
#=================================================
@ -107,7 +107,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION

View file

@ -103,7 +103,7 @@ yunohost service add $app --description "Jellyfin media center" --log "/var/log/
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app$(date "+%Y%m%d").log" --line_match="Startup complete"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Startup complete"
#=================================================
# RELOAD NGINX