]> git.etc.gen.nz Git - mythtv-epg-nz.git/commitdiff
Import systemd timer and service files
authorAndrew Ruthven <andrew@etc.gen.nz>
Sat, 11 Jun 2022 07:47:37 +0000 (19:47 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 11 Jun 2022 07:47:37 +0000 (19:47 +1200)
From:
http://www.jsw.gen.nz/mythtv/epg.timer
http://www.jsw.gen.nz/mythtv/epg.service

Minor change for new path to do_mhegepgsnoop and run at 06:00 by default.

debian/service [new file with mode: 0644]
debian/timer [new file with mode: 0644]

diff --git a/debian/service b/debian/service
new file mode 100644 (file)
index 0000000..2b26c0c
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Get MHEG5 EPG for MythTV
+After=mythtv-backend.service
+
+[Service]
+ExecStart=/bin/bash -c "/usr/bin/do_mhegepgsnoop"
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/debian/timer b/debian/timer
new file mode 100644 (file)
index 0000000..689936d
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Get MHEG5 EPG for MythTV daily at 06:00
+
+[Timer]
+OnCalendar=06:00:00
+Persistent=true
+
+[Install]
+WantedBy=timers.target