this post was submitted on 02 Apr 2026
44 points (95.8% liked)

Linux

64326 readers
408 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

What are some significant differences to expect when switching to an alternative, and can that affect gaming compatibility and performance?

you are viewing a single comment's thread
view the rest of the comments
[–] KeithD@lemmy.nz 7 points 2 days ago (2 children)

As someone who's created a timer, cron is much more straightforward.

Systemd has its good points, but most of that is the core functionality as a sysvinit replacement in my opinion. And it's entirely likely that at least one of the newer alternatives is a better option for that.

[–] mholiv@lemmy.world 7 points 2 days ago* (last edited 2 days ago) (2 children)

I think if you know cron from the start it can be easier, but it gets really annoying really fast.

Compare:

0 0 * * * /usr/bin/flock -n /tmp/myjob.lock bash -c 'sleep $((RANDOM % 3600)) && /usr/local/bin/myjob.sh'

To:

[Timer]
OnCalendar=daily
RandomizedDelaySec=1h

That and things like systemd preventing overlapped delays, handing what to do if the system was down during the last cycle, built in logging and event tracking. Seeing successful vs non successful runs etc.

Once you add in those production requirements cron gets annoying fast and timers are easy.

[–] KeithD@lemmy.nz 3 points 2 days ago (2 children)

For adding a quick thing to make something happen at a specific time, I can add a cron job in a couple of minutes. To add a timer takes creating a couple of files with syntax that took me a while to look up last time I needed it, and running a command. Then debugging. Sure, the timer has benefits, but cron jobs are still simpler.

On the bright side, there's actually a "crontab -t" command that apparently can be used to generate timer files from a crontab line, which I hadn't known of before today.

[–] mholiv@lemmy.world 9 points 2 days ago (1 children)

That’s because you know cron. If you knew timers equally as well they would be easier. And they let you handle the edge cases (retry, randomness, tracking, logs etc) without the need for a custom script.

Once you factor in the production edge cases I think timers are clearly easier. You get all of it for free.

[–] swelter_spark@reddthat.com 2 points 2 days ago (1 children)

As someone who didn't know anything about either a short time ago, I found cron easier to learn and use. Systemd timers look more visually clean, but the way cron works is more simple and straightforward.

[–] mholiv@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

I can see how for some people cron is more straightforward to learn, at least till you need to handle logging, checking for cron results, handling when the triggered event can’t happen that instance, ensuring only one instance of the triggered thing happens at once, adding time jitter, etc.

Then timers are way simpler. Timers let you create robust timed events for free. With cron you need to do all that yourself.

[–] Eggymatrix@sh.itjust.works 5 points 2 days ago

I can add the two files required to run a timer in systemd in a couple minutes, but writing the complex incantation to cron for having it do something that is the default in systemd is pure pain and takes me 3 hours of googling

[–] racketlauncher831@lemmy.ml 0 points 1 day ago

Something looks more complicated is not a problem. Compare long division to a calculator, why would one think the calculator is more elegant? The calculator only enabled those who can't do math acquire the answer.

And somehow in modern time, learning is someone who should be ashamed of??? Since when?

[–] Auli@lemmy.ca 1 points 1 day ago

I find systemd easier I don't have to google the timer syntax all the time.