You are not logged in.

#1 2021-03-10 08:55:39

dynosaw
Member
Registered: 2018-07-12
Posts: 54

SOLVED: Need help with anacron (cronie)

Can anyone help please??  We're talking about a stand-alone,
domestic PC, that gets powered on and booted up when it's
needed and then powered off again when the work's done
(to save electricity). There is no fixed schedule for using the PC.

I've installed and (systemctl) enabled cronie to run an anacron
job shortly after power-ON, boot-up. The job does run BUT the
problem is the delayed start of the execution of the anacron job.

The intention is that the anacron job will run a couple of minutes
after boot-up, without having to wait for one-minute past the
hour as dictated by cron.hourly.

Can anybody suggest a remedy please???
Thanks in advance.

Dynosaw
--

Last edited by dynosaw (2021-03-12 20:42:14)

Offline

#2 2021-03-10 12:27:16

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: SOLVED: Need help with anacron (cronie)

considered systemd.timer?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2021-03-10 13:16:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: SOLVED: Need help with anacron (cronie)

Just fire "anacron -n" with a "powerd up" service/script/hook?

Offline

#4 2021-03-11 10:09:52

dynosaw
Member
Registered: 2018-07-12
Posts: 54

Re: SOLVED: Need help with anacron (cronie)

Seth, Mr. Elendig
Thank you for your inputs. Both appreciated.
Mr. Elendig's input opened a whole new set of
perspectives from which the main conclusion
is that what works with one Linux distro cannot
be blindly carried over mutatis mutandis to
another distro. This anacron story is an example.

The delay in replying from this side is because
Mr. Elendig prompted me to search the web and
start reading. Amongst others, I turned up the
following (which may be useful for those who
come after me). For specific info:
1.  Steven Vona <https://www.putorius.net/using-systemd-timers.html>
and for general info:
2.  Systemd/Timers <https://wiki.archlinux.org/index.php/Systemd/Timers>

Again thanks. For my part this enquiry is sucessfully closed out.
Dynosaw
--

Offline

#5 2021-03-11 12:27:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: SOLVED: Need help with anacron (cronie)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB