Re: Dynamic .timer scheduling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



28.01.2020 21:46, Johannes Ernst пишет:
> 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)
> 

I can only think of creating transient timer with systemd-run
--on-unit-inactive=delta.
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux