1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

use oldstyle log folder creation (it required systemdm>=235)--access-log

This commit is contained in:
Jean-Baptiste Holcroft 2019-01-08 23:23:18 +01:00
parent 5e69c99be9
commit 8f6d0020b2
3 changed files with 13 additions and 10 deletions

View file

@ -9,8 +9,9 @@ Group=__APP__
WorkingDirectory=__FINALPATH__/code/api WorkingDirectory=__FINALPATH__/code/api
EnvironmentFile=__FINALPATH__/code/config/.env EnvironmentFile=__FINALPATH__/code/config/.env
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory= PermissionsStartOnly=true
LogsDirectory=__APP__ ExecStartPre=/bin/mkdir -p /var/log/__APP__
ExecStartPre=/bin/chown __APP__:__APP__ /var/log/__APP__
ExecStart=__FINALPATH__/code/virtualenv/bin/celery -A funkwhale_api.taskapp beat \ ExecStart=__FINALPATH__/code/virtualenv/bin/celery -A funkwhale_api.taskapp beat \
--loglevel INFO --logfile=/var/log/__APP__/beat.log --loglevel INFO --logfile=/var/log/__APP__/beat.log
@ -22,7 +23,7 @@ ProtectSystem=strict
ProtectControlGroups=yes ProtectControlGroups=yes
ProtectKernelModules=yes ProtectKernelModules=yes
ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/ ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/
ReadWritePaths=__FINALPATH__/media __FINALPATH__/import __FINALPATH__/code/api ReadWritePaths=__FINALPATH__/media __FINALPATH__/import __FINALPATH__/code/api /var/log/__APP__
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog

View file

@ -9,10 +9,11 @@ Group=__APP__
WorkingDirectory=__FINALPATH__/code/api WorkingDirectory=__FINALPATH__/code/api
EnvironmentFile=__FINALPATH__/code/config/.env EnvironmentFile=__FINALPATH__/code/config/.env
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory= PermissionsStartOnly=true
LogsDirectory=__APP__ ExecStartPre=/bin/mkdir -p /var/log/__APP__
ExecStartPre=/bin/chown __APP__:__APP__ /var/log/__APP__
ExecStart=__FINALPATH__/code/virtualenv/bin/daphne -b ${FUNKWHALE_API_IP} -p ${FUNKWHALE_API_PORT} config.asgi:application --proxy-headers \ ExecStart=__FINALPATH__/code/virtualenv/bin/daphne -b ${FUNKWHALE_API_IP} -p ${FUNKWHALE_API_PORT} config.asgi:application --proxy-headers \
--loglevel INFO --logfile=/var/log/__APP__/server.log --verbosity 1 --access-log=/var/log/__APP__/server.log
NoNewPrivileges=true NoNewPrivileges=true
PrivateDevices=true PrivateDevices=true
@ -22,7 +23,7 @@ ProtectSystem=strict
ProtectControlGroups=yes ProtectControlGroups=yes
ProtectKernelModules=yes ProtectKernelModules=yes
ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/ ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/
ReadWritePaths=__FINALPATH__/media __FINALPATH__/import ReadWritePaths=__FINALPATH__/media __FINALPATH__/import /var/log/__APP__
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog

View file

@ -9,8 +9,9 @@ Group=__APP__
WorkingDirectory=__FINALPATH__/code/api WorkingDirectory=__FINALPATH__/code/api
EnvironmentFile=__FINALPATH__/code/config/.env EnvironmentFile=__FINALPATH__/code/config/.env
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory= PermissionsStartOnly=true
LogsDirectory=__APP__ ExecStartPre=/bin/mkdir -p /var/log/__APP__
ExecStartPre=/bin/chown __APP__:__APP__ /var/log/__APP__
ExecStart=__FINALPATH__/code/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO \ ExecStart=__FINALPATH__/code/virtualenv/bin/celery -A funkwhale_api.taskapp worker -l INFO \
--loglevel INFO --logfile=/var/log/__APP__/worker.log --loglevel INFO --logfile=/var/log/__APP__/worker.log
@ -22,7 +23,7 @@ ProtectSystem=strict
ProtectControlGroups=yes ProtectControlGroups=yes
ProtectKernelModules=yes ProtectKernelModules=yes
ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/ ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/
ReadWritePaths=__FINALPATH__/media __FINALPATH__/import ReadWritePaths=__FINALPATH__/media __FINALPATH__/import /var/log/__APP__
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog