<div dir="ltr"><div>Dears,</div><div><br></div><div>testing timers on systemd v216, I've made a configuration that could be useful for enterprise's needs:<br></div><div><br></div><div><a href="https://github.com/dmedri/systemd-enterprise-timers">https://github.com/dmedri/systemd-enterprise-timers</a></div><div><br></div><div>The following ideas could be useful for the editing job.<br></div><div><br></div><div>FEATURES REQUESTS</div><div><br></div><div>1. in /src/shared/calendarspec.c, calendar_spec_from_string(...), add new cases for:</div><div>- "minutely" (<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">OnCalendar=*:0/1:00</span>)</div><div>- "quarterly" (<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">OnCalendar=01,04,07,10-01</span>)</div><div>- "semesterly" (<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">OnCalendar=01,07-01</span>)</div><div><br></div><div>2. add an utils to check OnCalendar= syntax.</div><div><br></div><div>What should expect an user from the utility of point 2.?</div><div>- print a list of timestamps from a syntax expression (like the "NEXT" field in systemctl list-timers --all)</div><div>- introduce a human readable string for syntax expressions (eg. "hourly" -> "Every hour.") that we could translate in different languages and share with desktop applications (eg. for backup, to send email, ...).</div><div><br></div><div>Example output:</div><div><br></div><div>------------------------------------------------------</div><div>$ systemctl calendar-syntax 'hourly'</div><div><br></div><div>       Syntax: hourly</div><div>Normalized : *-*-* *:00:00</div><div>Description : "Every hour"</div><div><br></div><div>Next timestamps:</div><div>mer 17 set 2014, 17.00.00, CEST</div><div>mer 17 set 2014, 18.00.00, CEST</div><div>mer 17 set 2014, 19.00.00, CEST</div><div>mer 17 set 2014, 20.00.00, CEST</div><div><div>mer 17 set 2014, 21.00.00, CEST</div><div>mer 17 set 2014, 22.00.00, CEST</div><div>mer 17 set 2014, 23.00.00, CEST</div></div><div>...</div><div>------------------------------------------------------<br></div><div><br></div><div><br></div><div>HTH</div><div><br></div><div>--</div><div>DM</div>
</div>