It is currently Wed Dec 02, 2020 2:09 am
All times are UTC + 8 hours

Added an entry to crontab but something overwrote it later

Share your awesome tips and tricks here.

Added an entry to crontab but something overwrote it later

Postby markd » Sat Mar 07, 2020 7:02 pm

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
markd
 
Posts: 1
Joined: Sat Mar 07, 2020 6:49 pm

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

Postby Nazar78 » Mon Mar 23, 2020 11:13 pm

There's a cron check kept somewhere IIRC. I ended up running a separate crontab daemon in chroot.
AS5304T - 16GB DDR4 - [40TB N300 RAID10 + 5 Bay USB: 8TB RAID5 & 480GB SSD for Apps]
User avatar
Nazar78
 
Posts: 201
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

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

Postby father.mande » Tue Mar 24, 2020 5:55 pm

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.
AS5202T /AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 1047
Joined: Sat Sep 12, 2015 2:55 am

Return to Tips & Tricks

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest