On 2026-04-14 15:21:57 +0200, Vincent Lefevre wrote:
> On 2026-04-14 18:55:26 +0700, Lin Qigang wrote:
> > On 4/14/26 8:04 AM, Vincent Lefevre wrote:
> > If you want a job to run at 7:30 every day, you should be using cron.
> > If you want a job to run some time every day, you should use anacron.
>
> AFAIK, using cron is not possible because the machine (a laptop)
> is sometimes switched off or suspended. I would expect anacron
> to run cron jobs at about the same time everyday if possible
> (i.e. in periods where the machine is up). I don't see why an
> upgrade of anacron should deviate from that.
That said, it seems that the preference nowadays is to use
systemd timers, and cron jobs typically have
if [ -d /run/systemd/system ]; then
exit 0
fi
when a systemd timer is also provided.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)