1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00
This commit is contained in:
Thomas 2023-06-19 20:53:12 +02:00 committed by GitHub
parent fe39f28f24
commit da8d1e0fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 15 deletions

View file

@ -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

View file

@ -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

View file

@ -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