Just learned of timers the other day, but I’m a cron guy, anybody out there using timers? Anything I’m missing out on?

  • thagoat@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    16
    ·
    3 days 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

    • mesa@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days 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
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day 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
          link
          fedilink
          English
          arrow-up
          1
          ·
          22 hours 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.