• gomp@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    4 days ago

    I’d recommend learning/using systemd timers instead (well, if you are on inux and your distro uses systems)

      • gomp@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        3 days ago

        You can use OnFailure in your .service file if you want some thing to happen when that specific service fails, but I don’t know if there’s a blanket way to tell systemd to notify via email when any failure happens (I wouldn’t mind a desktop notification… will investigate)

        • ouch@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          3 days ago

          When I checked a long time ago, there wasn’t.

          And not only failures, often it’s useful to get mail for all executions.

          I guess cron continues to have its place.