2020-01-30 14:47:36 +01:00
|
|
|
[Unit]
|
|
|
|
Description=LibreTime API Service
|
|
|
|
|
|
|
|
[Service]
|
2022-02-19 08:03:25 +01:00
|
|
|
Type=notify
|
2022-04-25 16:09:19 +02:00
|
|
|
KillMode=mixed
|
|
|
|
PrivateTmp=true
|
2022-02-19 08:03:25 +01:00
|
|
|
|
2022-01-15 18:22:24 +01:00
|
|
|
Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/api.log
|
2022-06-06 17:10:44 +02:00
|
|
|
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/libretime/config.yml
|
2022-01-15 18:22:24 +01:00
|
|
|
|
2022-04-25 16:09:19 +02:00
|
|
|
ExecStart=/usr/bin/gunicorn \
|
|
|
|
--workers 4 \
|
|
|
|
--log-file - \
|
|
|
|
--bind 127.0.0.1:8081 \
|
|
|
|
libretime_api.wsgi
|
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
2020-01-30 14:47:36 +01:00
|
|
|
User=libretime-api
|
|
|
|
Group=libretime-api
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|