This systemd system service clears the LED's

The systemd user service might not clear the LED's because systemd doesn't allow enough time for the grabber to gracefully shutdown, so this service ensures the LED's do turn off, unfortunately this doesn't occur on user logout, putting a ExecStop in the user script could also be a viable option.
This commit is contained in:
kevinlekiller 2019-06-24 14:02:30 -04:00 committed by GitHub
parent 6fdfd6b022
commit fc96668609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
hgx11stop.service Normal file
View File

@ -0,0 +1,12 @@
# /etc/systemd/system/hgx11stop.service
# systemctl enable hgx11stop.service && systemctl start hgx11stop.service
[Unit]
Description=Clears hyperion LED's on shutdown.
[Service]
ExecStart=/usr/bin/echo 1
RemainAfterExit=1
ExecStop=/usr/bin/hyperion-remote -a 192.168.2.213:19444 -c 000000
[Install]
WantedBy=multi-user.target