sintonia/api/install/systemd/libretime-api.service
jo 2f205544c2 feat: use dedicated 'libretime' user
BREAKING CHANGE: The default `www-data` user has been replaced by a dedicated  `libretime` user to run the services. Be sure to change the ownership of the libretime files.
2022-07-07 10:51:07 +02:00

24 lines
489 B
Desktop File

[Unit]
Description=LibreTime API Service
PartOf=libretime.target
[Service]
Type=notify
KillMode=mixed
PrivateTmp=true
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/api.log
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
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
Group=libretime
Restart=always
[Install]
WantedBy=multi-user.target