Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3560

General Questions • [Software] two different anacron start time

$
0
0
hello,
As a new anacron user, I'm trying to understand the basics. I thought I understood how the anacron command was activated. I first consulted the manual :

Code:

man anacron......On Debian-based systems, anacron will be  activated  hourly  every  day       from 07:30 local time to 23:30 local time through cron job (on non-sys‐       temd systems where cron is installed and enabled) or systemd timer  (on       systemd-based systems).  On activation, anacron will check if it missed       some jobs. If yes, it will start those jobs after  a  short  period  of       time.
To be sure, I first checked that bookworm is based on systemd :
:

Code:

~$ ps -p 1 -o comm=systemd
So, “or the systemd timer (on systemd-based systems)" must be the right answer. I looked for an anacron timer linked to systemd and found one in /lib/systemd/system/anacron :

Code:

:/lib/systemd/system$ cat anacron.timer[Unit]Description=Trigger anacron every hour[Timer]OnCalendar=*-*-* 07..23:30RandomizedDelaySec=5mPersistent=true[Install]WantedBy=timers.target
Everything seems to match, except the start times: 7:30am (cron job) and 7am (systemd timer).

My question is this: is there a flaw in what I've just said that could explain why the start times don't match?

Statistics: Posted by mazda1 — 2025-02-27 08:56 — Replies 0 — Views 24



Viewing all articles
Browse latest Browse all 3560

Trending Articles