]> code.delx.au - mouse-wiggle/blobdiff - mouse-wiggle.service
systemd unit
[mouse-wiggle] / mouse-wiggle.service
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