update service to autostart web ui

This commit is contained in:
Chuck
2025-08-10 20:53:33 -05:00
parent 809cb07bb8
commit 8a8e3c21cb
2 changed files with 67 additions and 0 deletions

18
ledmatrix-web.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=LED Matrix Web Interface Service
After=network.target
Wants=ledmatrix.service
[Service]
Type=simple
User=root
WorkingDirectory=/home/ledpi/LEDMatrix
ExecStart=/usr/bin/python3 /home/ledpi/LEDMatrix/start_web_conditionally.py
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=ledmatrix-web
[Install]
WantedBy=multi-user.target