Need a way to run command based on periodic event (NOT cron)

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
geva420
DD-WRT User


Joined: 30 Oct 2010
Posts: 108
Location: Lyon, France

PostPosted: Thu Jul 12, 2012 14:34    Post subject: Need a way to run command based on periodic event (NOT cron) Reply with quote
[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?

geva
Sponsor
geva420
DD-WRT User


Joined: 30 Oct 2010
Posts: 108
Location: Lyon, France

PostPosted: Mon Jul 30, 2012 19:32    Post subject: Reply with quote
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.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum