Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KqhjP7nud5gdBg25zCiRk9
17 lines
405 B
Desktop File
17 lines
405 B
Desktop File
[Unit]
|
|
Description=NanoPi R5C front-panel LEDs (power / LAN / WAN / WiFi)
|
|
After=van-failover.service
|
|
# Restart limit: max 5 restarts per 5 minutes, then stay failed (as the other van services)
|
|
StartLimitIntervalSec=300
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=-/sbin/modprobe ledtrig-netdev
|
|
ExecStart=/usr/local/sbin/van-leds
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|