Bug 82133 - RFE: Allow for %i format string in OnCalendar values.
Summary: RFE: Allow for %i format string in OnCalendar values.
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-04 13:49 UTC by freedesk.apriori
Modified: 2016-11-24 01:01 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.