Web lists-archives.com

Re: Playing with systemd timers - best practices.




Is there something wrong with systemd-crontab-generator?

https://manpages.debian.org/stretch/systemd-cron/systemd-crontab-generator.8.en.html

On 31/08/2018 07:59, Kamil Jońca wrote:
> Recently I found that systemd has timers which can replace (and extend)
> cron functionality.
>
> My question is:
> I have crontab like this:
> --8<---------------cut here---------------start------------->8---
> 1 * * * *   script.sh site1
> 3 * * * *   script.sh site2
> 9 * * * *   script.sh site3
> 2 * * * *   script.sh site4
> (... some similar entries ...)
> --8<---------------cut here---------------end--------------->8---
>
> Obvious way to migrate entries is create service template + some timers
> calling this service.
>
> But iss any smart way to make timer template and parameterise it?
> KJ
>
>