this post was submitted on 21 Nov 2025
44 points (97.8% liked)

Linux

10229 readers
710 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

Just learned of timers the other day, but I'm a cron guy, anybody out there using timers? Anything I'm missing out on?

you are viewing a single comment's thread
view the rest of the comments
[–] thagoat@lemmy.dbzer0.com 16 points 3 days ago (2 children)

Also a cron guy, but systemd timers can do things like run at a preset time after start up if a schedule was missed due to power off or system suspension, and you can get more information about a failed timer with journalctl. Arch wiki has lots of good info. Still, I'm a cron guy. πŸ€·β€β™‚οΈ Set in my ways

[–] who@feddit.org 4 points 3 days ago

Are you unaware of anacron?

[–] mesamunefire@piefed.social 4 points 3 days ago* (last edited 3 days ago) (1 children)

You can do the same with cron btw depending on the OS(?). At least on debian systems. I think its @poweroff or @reboot if I recall correctly.

[–] prettybunnys@piefed.social 2 points 1 day ago (1 children)

It’s more than just power state, you can also toggle based on the state of other units (which you could chain normally too, but not time based) so you could start a service 10 minutes after another service has ran to completion, or after it’s died, etc.

This is the only case in which I use timers, really, when I want something to run on startup, every once in a while, but only after it's confirmed that the internet is up.