restart service on failure

there's a spurious EC communication issue
(driver/firmware bug?), and this is the easiest fix
This commit is contained in:
Jonas Schievink 2023-06-19 04:53:34 +02:00
parent 7d39f99fb9
commit 31be7e68a7

View file

@ -1,9 +1,15 @@
[Unit] [Unit]
Description=Keyboard backlight daemon Description=Keyboard backlight daemon
StartLimitIntervalSec=500
StartLimitBurst=5
[Service] [Service]
Type=exec Type=exec
ExecStart=/usr/local/bin/keylightd ExecStart=/usr/local/bin/keylightd
Restart=on-failure
RestartSec=1s
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target