]> code.delx.au - mouse-wiggle/commitdiff
systemd unit master
authorJames Bunton <jamesbunton@delx.au>
Tue, 30 Jan 2024 02:10:46 +0000 (13:10 +1100)
committerJames Bunton <jamesbunton@delx.au>
Tue, 30 Jan 2024 02:10:46 +0000 (13:10 +1100)
mouse-wiggle.service [new file with mode: 0644]

diff --git a/mouse-wiggle.service b/mouse-wiggle.service
new file mode 100644 (file)
index 0000000..6b0350e
--- /dev/null
@@ -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