derekperrin / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

Cron stopped working after firmware update #1510

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Firmware update.

What is the expected output? What do you see instead?
Cron should run flexget every 10. minute.

What version of the product are you using? On what operating system?
Router: RT-N56U
3.4.3.9-095 and i also tried 3.X.3.9-091.

Computer using Windows 8 and putty.

Problem description:
After updating from 3.X.3.8-085 my cron setup has stopped working. I would 
really appreciate some support getting it to work again. Alternately a download 
link to the old 3.X.3.8-085 firmware file?

My started_script.sh

echo "*/10 * * * * /opt/bin/flexget" >> /var/spool/cron/crontabs/admin
[ -n "`pidof crond`" ] && killall -q crond
sleep 1
cron

What can i do to get i working again? I am not a skilled linux user.

Thank you for your great work with the RT-N56U.

Original issue reported on code.google.com by J.lyt...@gmail.com on 11 Jul 2015 at 9:17

GoogleCodeExporter commented 8 years ago
this is my working script, just modify it, make sure folder exists !

CRONTABS=/etc/storage/cron/crontabs/root
if [ ! -f $CRONTABS ] ; then
    echo "0 0 * * * /etc/storage/cron/unbound-root-update.sh" > $CRONTABS
fi

[ -n "`pidof crond`" ] && killall -q crond
crond

Original comment by leandro.ong@gmail.com on 11 Jul 2015 at 9:01

GoogleCodeExporter commented 8 years ago
Is this right? Flexget is not starting, and nothing is written to syslog.

Can you help me?

CRONTABS=/etc/storage/cron/crontabs/root
if [ ! -f $CRONTABS ] ; then
    echo "*/10 * * * * /opt/bin/flexget" > $CRONTABS
fi

[ -n "`pidof crond`" ] && killall -q crond
crond

Original comment by J.lyt...@gmail.com on 12 Jul 2015 at 3:09

GoogleCodeExporter commented 8 years ago
Please read this article: 
https://code.google.com/p/rt-n56u/wiki/CommonTips#Using_the_built-in_scheduler_(
crond) 

Original comment by Dr.Sydorenko.O on 12 Jul 2015 at 5:12

GoogleCodeExporter commented 8 years ago
I did read it, but it makes more sense the 5 time i read it.

Do i need more then:

[ -z "`pidof crond`" ] && /usr/sbin/crond

In my started_script.sh if i add "*/10 * * * * /opt/bin/flexget" in crontabs?

It does work now, and the cron task i still present after a rebot, so that is 
great.

Original comment by J.lyt...@gmail.com on 12 Jul 2015 at 6:28

GoogleCodeExporter commented 8 years ago
How do i change status to fixed/closed?

Original comment by J.lyt...@gmail.com on 13 Jul 2015 at 2:35

GoogleCodeExporter commented 8 years ago

Original comment by Dr.Sydorenko.O on 17 Jul 2015 at 3:52