mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
19 lines
448 B
Desktop File
19 lines
448 B
Desktop File
[Unit]
|
|
Description=WROLPi Python API
|
|
Wants=postgresql.service
|
|
PartOf=wrolpi.target
|
|
Conflicts=wrolpi-api-dev.service
|
|
|
|
[Service]
|
|
Environment=PYTHONUNBUFFERED=1
|
|
ExecStart=/opt/wrolpi/venv/bin/python -O -m sanic main:api_app --host 0.0.0.0 --port 8081 -w 5
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Group=wrolpi
|
|
User=wrolpi
|
|
WorkingDirectory=/opt/wrolpi/
|
|
Restart=on-failure
|
|
# Higher than the App so the API can start.
|
|
Nice=4
|
|
|
|
[Install]
|
|
WantedBy=default.target
|