21 lines
585 B
Desktop File
21 lines
585 B
Desktop File
[Unit]
|
|
Description=Make BMS data available for consumers
|
|
# Wait for the Bluetooth service if this boot starts it. On a host with no
|
|
# adapter, systemd skips that service, and this unit starts with no wait.
|
|
After=bluetooth.service
|
|
|
|
[Service]
|
|
Type=exec
|
|
# The full path of the git repo on your system
|
|
WorkingDirectory=/usr/local/bmspy
|
|
# Send each log line to the journal at once.
|
|
Environment=PYTHONUNBUFFERED=1
|
|
ExecStartPre=/usr/bin/install -d -onobody -gdialout -m770 /run/bmspy
|
|
ExecStart=uv run --no-sync bmspy-server
|
|
RestartSec=5
|
|
Restart=on-failure
|
|
|
|
|
|
[Install]
|
|
WantedBy=default.target
|