sintonia/api/install/systemd/libretime-api.service
jo 604ff20239 feat: change config filename to config.yml
BREAKING: The configuration file name changed from `airtime.conf` to
`config.yml`. Please rename your configuration file accordingly.
2022-06-08 23:23:08 +02:00

23 lines
484 B
Desktop File

[Unit]
Description=LibreTime API Service
[Service]
Type=notify
KillMode=mixed
PrivateTmp=true
Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/api.log
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/config.yml
ExecStart=/usr/bin/gunicorn \
--workers 4 \
--log-file - \
--bind 127.0.0.1:8081 \
libretime_api.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
User=libretime-api
Group=libretime-api
Restart=always
[Install]
WantedBy=multi-user.target