From fc96668609a958d4ffc9bb4222c553cd6b5f5e38 Mon Sep 17 00:00:00 2001 From: kevinlekiller Date: Mon, 24 Jun 2019 14:02:30 -0400 Subject: [PATCH] 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. --- hgx11stop.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hgx11stop.service diff --git a/hgx11stop.service b/hgx11stop.service new file mode 100644 index 0000000..1752e18 --- /dev/null +++ b/hgx11stop.service @@ -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