• 0 Posts
  • 121 Comments
Joined 3 years ago
cake
Cake day: June 28th, 2023

help-circle


  • 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.


  • The main functional difference between systemd and others is that systemd will just work. Others will require you hand tune and hand tinker with a non-mainstream Linux distro.

    If your hobby is init systems by all means mess around though.

    I personally quite like systemd. Unit files are clean, timers services and sockets are easy to manage etc.

    Honestly it’s a non-problem. Best advice is to use what is best supported. Don’t let the extremely fringe (but loud) tiny group of systemd haters throw you off.
















  • What are you talking about? Linux has virtually no backwards compatibility at all. Maybe one or two years max. The kernel is fine. The weak point is glibc.

    You literally need to recompile applications constantly to stay compatible with glibc. Otherwise they just don’t work.

    The good news is that distros are constantly providing freshly compiled versions of open source applications.

    The bad news is that actual binary backwards compatibility is non existent. Try running a binary compiled in 2005 on modern Linux. You’ll just get a ton of glibc errors.

    Windows lets you run applications compiled in 1995 on modern desktops.

    Linux is great and it’s what I use. But we can’t claim backwards compatibility as a strength. Maybe a binary compiled today with musl might run in 2036 but musl targeting is quite rare.