From 66a75975d1595c58757905b205d320592d1cf01a Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 11 Jun 2022 19:47:37 +1200 Subject: [PATCH] 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. --- debian/service | 10 ++++++++++ debian/timer | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 debian/service create mode 100644 debian/timer 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 -- 2.30.2