Skip to content

Commit

Permalink
restart service on failure
Browse files Browse the repository at this point in the history
there's a spurious EC communication issue
(driver/firmware bug?), and this is the easiest fix
  • Loading branch information
jonas-schievink committed Jun 19, 2023
1 parent 7d39f99 commit 31be7e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/keylightd.service
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[Unit]
Description=Keyboard backlight daemon

StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
Type=exec
ExecStart=/usr/local/bin/keylightd

Restart=on-failure
RestartSec=1s

[Install]
WantedBy=multi-user.target

0 comments on commit 31be7e6

Please sign in to comment.