Files
ugreen_dx4600_leds_controller/scripts/ugreen-netdevmon@.service
Yuhao Zhou 522f93b8cf add ATA disk mapping, zpool check, netdev check, and a config file (#15)
1. Add the config file /etc/ugreen-leds.conf for environment variables used in ugreen-diskiomon (see scripts/ugreen-leds.conf)
2. Make the blinking of netdev activities, colors of different disk states / NIC link speeds configurable
3. Add the check of zpool health
4. Add the check of gateway connectivity and the link speed of network device
5. Split the systemd service to ugreen-diskiomon.service and ugreen-netdevmon@<device name>.service
6. HCTL mapping will fail in some cases (hctl mapping for SATA drives only #14), UGOS uses ATA number to map disks to slots. I changed the default mapping to ATA, which can be shown by the following scripts:
2024-06-22 03:26:26 +08:00

12 lines
251 B
Desktop File

[Unit]
Description=UGREEN LEDs daemon for monitoring netio (of %i) and blinking corresponding LEDs
[Service]
ExecStartPre=/usr/bin/ugreen-probe-leds
ExecStart=/usr/bin/ugreen-netdevmon %i
StandardOutput=journal
[Install]
WantedBy=multi-user.target