From: James Bunton Date: Tue, 30 Jan 2024 02:10:46 +0000 (+1100) Subject: systemd unit X-Git-Url: https://code.delx.au/mouse-wiggle/commitdiff_plain systemd unit --- diff --git a/mouse-wiggle.service b/mouse-wiggle.service new file mode 100644 index 0000000..6b0350e --- /dev/null +++ b/mouse-wiggle.service @@ -0,0 +1,9 @@ +[Unit] +Description=Mouse wiggle every time MythTV starts playback + +[Service] +ExecStart=/bin/bash -c 'journalctl -t mythfrontend -t mythfrontend.real -f | grep --line-buffered "Entering main playback loop" | while read line; do echo mouse-wiggle; /root/mouse-wiggle/mouse-wiggle; done' +Restart=always + +[Install] +WantedBy=multi-user.target