• marcos@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    19 hours ago

    Make the rule start a secondary cron system. Otherwise it won’t run after you erase the crontab.

    • dondelelcaro@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      18 hours ago

      Here you go:

      with-lock-ex -q /path/to/lockfile sh -c '
      while true; do
          crontab cronfile;
          sleep 60;
      done;'