diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-02 22:18:30 +0000 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-02 22:18:30 +0000 |
| commit | e0bfe2bf0c42a1a000d1a326500793e10b15ff1a (patch) | |
| tree | 0bf592a13a0771a09f216f33f46cd789b7dda41c /roles/epgtrim/files/epgtrim.service | |
| parent | 6bc9c8ff43796a702b7abf8fc5baa68f5e85ee5d (diff) | |
| download | infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.tar.gz infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.tar.bz2 infra-e0bfe2bf0c42a1a000d1a326500793e10b15ff1a.zip | |
Add playbook for epgtrim
Diffstat (limited to 'roles/epgtrim/files/epgtrim.service')
| -rw-r--r-- | roles/epgtrim/files/epgtrim.service | 15 |
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 |