21 lines
595 B
Desktop File
21 lines
595 B
Desktop File
[Unit]
|
|
Description=Lutron Control
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
StartLimitIntervalSec=300
|
|
StartLimitBurst=20
|
|
|
|
[Service]
|
|
# Type=notify works with the program's native sd_notify support; WatchdogSec
|
|
# enables the systemd watchdog the program pings while healthy.
|
|
Type=notify
|
|
NotifyAccess=main
|
|
ExecStart=/usr/local/bin/lutron-control --config /etc/lutron-control/config.yaml
|
|
Restart=always
|
|
RestartSec=5
|
|
WatchdogSec=120
|
|
# Grant access to the serial adapter (unused, but harmless, on the telnet transport).
|
|
SupplementaryGroups=dialout
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|