Thanks to visit codestin.com
Credit goes to programming.dev

  • esa@discuss.tchncs.de
    Codestin Search App
    Codestin Search App
    Codestin Search App
    10
    ·
    10 months ago

    post from 2025

    systemd is a relatively new utility that provides an array of components for Linux systems.

    what


    Snideness aside, systemd timers can be pretty neat. They also have some features like being able to specify “Daily” and setting some looseness in when it triggers if you e.g. have a fleet of machines and don’t want them all to do something at exactly the same time.

        • BlackEco@lemmy.blackeco.com
          Codestin Search App
          Codestin Search App
          Codestin Search App
          10
          Codestin Search App
          1
          ·
          10 months ago

          Have you read the article? The fourth paragraph lists improvements systemd timers bring over cron:

          Cron is easy, very simple and robust mechanism to execute periodic tasks on a *nix server, and is available by default on all popular Linux distributions. However, cron suffers from some issues:

          • If the system is down when the cron needs to run, the cron will be missed

          • There is no built-in status monitoring

          • There are no built-in logs

          • If you want to execute pre/post commands (for example by pinging an external service for success/failure) you have to do it inside the script itself

          All of these issues are addressed with systemd services and timers, as the authors explains in details.

        • MadhuGururajan
          Codestin Search App
          Codestin Search App
          English
          Codestin Search App
          2
          Codestin Search App
          1
          ·
          10 months ago

          cron is quite inadequate for condition based scheduling. Instead of million obscure ways to achieve this inside the command that cron executes, systemd timers give us a standard ONE way to do things.

          I feel like systemd timers follow unix philosophy better than cron at this day and age.