merari42@lemmy.world to Programmer Humor@programming.dev · 1 day agoWorks if manually restarted by an intern from time to timelemmy.worldimagemessage-square41fedilinkarrow-up1627arrow-down14
arrow-up1623arrow-down1imageWorks if manually restarted by an intern from time to timelemmy.worldmerari42@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square41fedilink
minus-squaredondelelcaro@lemmy.worldlinkfedilinkarrow-up9·20 hours agoThat’s why there’s a crontab rule to load the crontab from a file. Cronception if you will.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up7·19 hours agoMake the rule start a secondary cron system. Otherwise it won’t run after you erase the crontab.
minus-squaredondelelcaro@lemmy.worldlinkfedilinkarrow-up6·edit-218 hours agoHere you go: with-lock-ex -q /path/to/lockfile sh -c ' while true; do crontab cronfile; sleep 60; done;'
That’s why there’s a crontab rule to load the crontab from a file. Cronception if you will.
Make the rule start a secondary cron system. Otherwise it won’t run after you erase the crontab.
Here you go:
with-lock-ex -q /path/to/lockfile sh -c ' while true; do crontab cronfile; sleep 60; done;'