mirror of
https://github.com/YunoHost-Apps/librephotos_ynh.git
synced 2024-09-03 19:36:12 +02:00
18 lines
577 B
Desktop File
18 lines
577 B
Desktop File
[Unit]
|
|
Description=librephotos-backend
|
|
Documentation=https://github.com/LibrePhotos/librephotos
|
|
|
|
After=network.target postgresql.service
|
|
Requires=postgresql.service
|
|
|
|
[Service]
|
|
User=__APP__
|
|
Group=__APP__
|
|
EnvironmentFile=__FINALPATH__/librephotos.env
|
|
ExecStart=/usr/bin/env bash -c "PATH=__PATH_PREFIX__:$PATH gunicorn --worker-class=gevent --timeout 3600 --bind 127.0.0.1:$BACKEND_PORT --log-level=info ownphotos.wsgi"
|
|
WorkingDirectory=__FINALPATH__/backend
|
|
StandardOutput=append:/var/log/__APP__/__APP__-backend.log
|
|
StandardError=inherit
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|