Files
matrix-screen-controller/核桃派软件源代码/systemd/matrix-screen-controller-ota.service
T

16 lines
428 B
Desktop File

[Unit]
Description=WalnutPi Matrix Screen Controller OTA Worker
After=matrix-screen-controller.service
ConditionPathExists=/run/matrix-screen-controller/ota-request.json
[Service]
Type=oneshot
WorkingDirectory=/opt/matrix-screen-controller
Environment=PYTHONDONTWRITEBYTECODE=1
ExecStart=/opt/matrix-screen-controller/.venv/bin/python -m scripts.ota_worker
TimeoutStartSec=infinity
Nice=5
[Install]
WantedBy=multi-user.target