On 09/25/2017 10:45 PM, Daniel Wang wrote:
> I have a number of timers that all look something like the following:
<snip>
> The boilerplate for such small things is killing me. Is there a good
> technique to replace them with something simpler?
> Maybe transient timers? What will be the drawbacks of transient timers
> comparing to regular timers?


I assume timers can be instanced as well:

hourly@.timer:

>>>>>>>

[Unit]
Description=Runs a unit every hour

[Timer]
OnCalendar=hourly
Unit=%I

<<<<<<<

But, this is totally hypothetical, I have not tested if this actually works.

Auke
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to