Page 1 of 1

Added an entry to crontab but something overwrote it later

Posted: Sat Mar 07, 2020 7:02 pm
by markd
Hi,

I edited the crontab with "sudo crontab -e". But something has deleted what I added.

I may have disabled and re-enabled the "Scheduled export of System Settings" option in "Backup and Restore", or maybe some other option. I suspect that when I did that it overwrote the cron file with a default or standard one from somewhere.

Mark

Re: Added an entry to crontab but something overwrote it later

Posted: Mon Mar 23, 2020 11:13 pm
by Nazar78
There's a cron check kept somewhere IIRC. I ended up running a separate crontab daemon in chroot.

Re: Added an entry to crontab but something overwrote it later

Posted: Tue Mar 24, 2020 5:55 pm
by father.mande
Hi,
You have multiple easy choice for managing cron as you want ...
1 use autorun mechanism to start your own script at boot time ... so add your cron line
2 use a fake APKG to add some more control to avoid crontab replaced.
3 use Entware APKG that permit to add a private cron (but not in chroot)
... a start_up script exist at boot ... and are ignored by any ADM task changing lines et restarting ADM cron ... F.Y.I. task in ADM is name crond and cron in Entware ...

Philippe.