Joined: 30 Oct 2010 Posts: 108 Location: Lyon, France
Posted: Thu Jul 12, 2012 14:34 Post subject: Need a way to run command based on periodic event (NOT cron)
[In one installation,] I use DD-WRT with CRON to control bandwidth/QoS limits based on time of day. It's great, works well, etc.
However... there are apparently some known problems with the cron service in V24 where it goes to sleep and never wakes up. This is obviously a pretty big problem as it means nothing gets run until the service is manually restarted.
I'm looking for a way to be able to periodically stop and restart the cron service so that it does not fall asleep and was hoping for some form of event trigger like wanup (but which happens continuously).
Does anyone have any ideas on how to run such a script?
Joined: 30 Oct 2010 Posts: 108 Location: Lyon, France
Posted: Mon Jul 30, 2012 19:32 Post subject:
Much time has past, and I have continued to suffer from this problem with cron hanging up.
I have finally implemented a work around that seems to be working and wanted to post back for an update.
1/ Use an optware start up script to pause, then restart cron. This gets it working after a reboot.
2/ Use the .wanup script to also restart cron. This apparently happens more often than just at WAN interface coming up, so is a periodic means of restarting cron should it fall asleep.