964 B
964 B
Systemd Timers for Regular Tasks
To have custom executables run regulary on given time/interval, you may use the base::timers Hiera key:
base::timers:
'timer_test':
description: 'test timers'
command: '/usr/bin/logger foo'
on_calendar: '*:*:10'
timer_options:
persistence: false
For each timer following keys are mandatory
descriptionfor a short explaination what it is aboutcommandfor the command to runon_calendardefining when it should run using thesystemdcalendar event format, (alternatively see also chapter "CALENDAR EVENTS" ofman systemd.date)
Optional is
timer_optionsfor additional options. In the example it ispersistencewhich signals if the timer should run immediately after boot when the node was switched of on the last scheduled run time (default isfalse).