From: Andrew Ruthven Date: Sat, 11 Jun 2022 07:47:37 +0000 (+1200) Subject: Import systemd timer and service files X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66a75975d1595c58757905b205d320592d1cf01a;p=mythtv-epg-nz.git Import systemd timer and service files 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. --- diff --git a/debian/service b/debian/service new file mode 100644 index 0000000..2b26c0c --- /dev/null +++ b/debian/service @@ -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 index 0000000..689936d --- /dev/null +++ b/debian/timer @@ -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