mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
fix logs
This commit is contained in:
parent
fe39f28f24
commit
da8d1e0fa1
3 changed files with 19 additions and 15 deletions
|
@ -76,9 +76,9 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
|||
ynh_add_config --template="../conf/funkwhale.target" --destination="/etc/systemd/system/$app.target"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service" --log="/var/log/__APP__/__APP__-server.log"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service"
|
||||
|
||||
#=================================================
|
||||
# INSTALL PYTHON DEPENDENCIES
|
||||
|
@ -131,9 +131,9 @@ chown -R $app:$app /var/log/$app/
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add "${app}-beat"
|
||||
yunohost service add "${app}-server"
|
||||
yunohost service add "${app}-worker"
|
||||
yunohost service add "${app}-beat" --description="__APP__ celery beat process" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
yunohost service add "${app}-server" --description="__APP__ application server" --log="/var/log/__APP__/__APP__-server.log"
|
||||
yunohost service add "${app}-worker" --description="__APP__ celery worker" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -79,9 +79,13 @@ systemctl enable "${app}-worker.service" --quiet
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service" --log="/var/log/__APP__/__APP__-server.log"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service"
|
||||
|
||||
yunohost service add "${app}-beat" --description="__APP__ celery beat process" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
yunohost service add "${app}-server" --description="__APP__ application server" --log="/var/log/__APP__/__APP__-server.log"
|
||||
yunohost service add "${app}-worker" --description="__APP__ celery worker" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -132,9 +132,9 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
|||
ynh_add_config --template="../conf/funkwhale.target" --destination="/etc/systemd/system/$app.target"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service" --log="/var/log/__APP__/__APP__-server.log"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
ynh_add_systemd_config --service="${app}-server" --template="funkwhale-server.service"
|
||||
ynh_add_systemd_config --service="${app}-worker" --template="funkwhale-worker.service"
|
||||
ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.service"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
@ -143,9 +143,9 @@ ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.serv
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add "${app}-beat"
|
||||
yunohost service add "${app}-server"
|
||||
yunohost service add "${app}-worker"
|
||||
yunohost service add "${app}-beat" --description="__APP__ celery beat process" --log="/var/log/__APP__/__APP__-beat.log"
|
||||
yunohost service add "${app}-server" --description="__APP__ application server" --log="/var/log/__APP__/__APP__-server.log"
|
||||
yunohost service add "${app}-worker" --description="__APP__ celery worker" --log="/var/log/__APP__/__APP__-worker.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Reference in a new issue