Files
vanlink/leds/van-leds.service

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