Now works in a service on boot.

This commit is contained in:
Ben Nicholson
2025-11-19 21:41:22 +11:00
parent 1d7e56f837
commit 9cbbfc12bc
4 changed files with 43 additions and 7 deletions

18
rrcs-trigger.service Executable file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=Runs the ras_pi_RRCS_BusyLight.py script at boot
After=network.target
#StartLimitIntervalSec=5
[Service]
Type=simple
Restart=always
RestartSec=5
User=root
ExecStart=/usr/local/bin/rrcs-trigger /usr/local/bin/ras_pi_RRCS_BusyLight.py
WorkingDirectory=/tmp
StandardOutput=journal
StandardError=journal
Environment=PYTHONUNBUFFERED=1
[Install]
WantedBy=multi-user.target