Bug 82133

Summary: RFE: Allow for %i format string in OnCalendar values.
Product: systemd Reporter: freedesk.apriori
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium CC: alexandre
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description freedesk.apriori 2014-08-04 13:49:09 UTC
It would be useful if the %i format string were available to specify the value of OnCalendar.

This would obviate the need to copy .timer unit definitions when just the OnCalendar value changes. While (I think) it is possible to specify multiple OnCalendar entries, using the template system would be more flexible.

Another use case for me would be that I have a timer unit which passes arguments of the form «weekly», «daily», etc., to the service (which in turn passes it to my script). Without having %i available, I have to create multiple timers such as «snapshot-daily@daily.timer», «snapshot-weekly@weekly.timer». If %i could be used, one timer unit would suffice.
Comment 1 Lennart Poettering 2016-11-24 01:01:03 UTC
This is supported these days.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.