summaryrefslogtreecommitdiff
path: root/roles/epgtrim/files/epgtrim.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/epgtrim/files/epgtrim.service')
-rw-r--r--roles/epgtrim/files/epgtrim.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/epgtrim/files/epgtrim.service b/roles/epgtrim/files/epgtrim.service
new file mode 100644
index 0000000..6501465
--- /dev/null
+++ b/roles/epgtrim/files/epgtrim.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Run epgtrim once
+After=network.target
+
+[Service]
+User=http
+Group=http
+Type=oneshot
+WorkingDirectory=/srv/http/ilvokhin.com
+EnvironmentFile=/etc/epgtrim
+ExecStart=/usr/bin/epgtrim -output xmltv.xml ${URL}
+ExecStart=/usr/bin/gzip --force xmltv.xml
+
+[Install]
+WantedBy=default.target