44
submitted 4 weeks ago by cm0002@infosec.pub to c/linux@programming.dev

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 4 weeks ago

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

[-] mesamunefire@piefed.social 4 points 3 weeks ago* (last edited 3 weeks ago)

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 3 weeks ago

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.

[-] swelter_spark@reddthat.com 1 points 3 weeks ago

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.

[-] who@feddit.org 4 points 3 weeks ago

Are you unaware of anacron?

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

Linux

10655 readers
590 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