4 ms·
I use a systemd timer to handle periodic calls to offlineimap, and that works really well compared to a corn-based work flow.
by cbcoutinho 7y ago
I use a systemd timer to handle periodic calls to offlineimap, and that works really well compared to a corn-based work flow.
- masklinn 7y agosystemd timers are a cron-based workflow. A cron-based workflow is when you periodically check for work to do rather than get notified that there's work to do.
- cbcoutinho 7y agoYes that's true that they periodically check for work to do, but cron is not smart enough to know whether a service is already running - a systemd-timer can base it's timer from the point when a service completes. I think cron just fires up a service unless you build in some logic to check if it's running
- JdeBP 7y agoThat's not really relevant. masklinn is contrasting periodic polling schemes like yours with using IDLE.