[systemd-devel] Dynamic .timer scheduling
Johannes Ernst
johannes.ernst at gmail.com
Tue Jan 28 18:46:38 UTC 2020
Is there a best practice for scheduling .timers based on what happened in a previous run?
Pseudocode:
while( true ) :
delta = runService();
sleep( delta );
I can think of …
1) run the job frequently, but skip the bulk of its execution most of the time (e.g. decrementing a counter saved somewhere)
2) have the job modify the .timer file at the end of each run (sounds … not so great)
There isn’t anything systemd “native” for that, right?
Thanks,
Johannes.
More information about the systemd-devel
mailing list