beralt / horepg

A simple translator between the Horizion JSON format and the XMLTV format
MIT License
10 stars 10 forks source link

Systemd update #8

Closed AlexMekkering closed 8 years ago

AlexMekkering commented 8 years ago

This PR updates the systemd horepgd.service to type oneshot (and thus uses the new '-1'-parameter), to be used by a systemd timer horepgd.timer. This enables the user to adapt the frequency with which the EPG update is executed. So, by starting (or enabling) the horepgd.timer. the horepgd.service is called once a day by default (and only runs once). Next to that, in horepgd.service, I enabled the EPG update for radio channels as well by default.

beralt commented 8 years ago

Good idea! Only reason that I did not implement it is because systemd timers stopped working on my system, and I have no idea why. I will merge this anyway since it definitely makes sense to leave scheduling to something system-wide.

Adding another parameter to select the range that is to be updated makes sense, so I'm adding that to my todo list.