sintonia/api/install/systemd/libretime-api.service
jo ee98387264 feat(installer): rewrite install script
- remove unused root packages.ini
- write config to yaml file
- allow to set public_url during install
- force icecast start right after package install
- move config file in place at the end of installation

BREAKING CHANGE: The bash installer has been rewritten, the flags and
options changed, please run `./install --help` to get more details.
2022-06-08 23:23:08 +02:00

23 lines
473 B
Desktop File

[Unit]
Description=LibreTime API Service
[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-api
Group=libretime-api
Restart=always
[Install]
WantedBy=multi-user.target