Page 1 of 1

Schedule reboot router

Posted: Fri May 01, 2015 2:43 am
by erez669
i want to understand the feature called schedule reboot and how it works, i define that every 1st month at 3:00 am my router will reboot himself, but it doesn't reboot himself.
im running gargyole v1.6.2 on TP-LINK TL-WR1043ND V2.1, i want to know if this is a bug or i'm not understand how it should work.

thanks in advanced.

8-)

Re: Schedule reboot router

Posted: Fri May 01, 2015 3:09 am
by Lantis
please post the output of

Code: Select all

crontab -l

Re: Schedule reboot router

Posted: Fri May 01, 2015 4:39 am
by erez669
0 0,4,8,12,16,20 * * * date -u +"%Y.%m.%d-%H:%M:%S" >/usr/data/time_backup
0,1,11,21,31,41,51 * * * * /usr/bin/set_kernel_timezone >/dev/null 2>&1
0 3 0 * * sh /usr/lib/gargoyle/reboot.sh
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh

i run the command line with SSH connection and this is the output.

i want an explanation what it means.

Re: Schedule reboot router

Posted: Fri May 01, 2015 4:57 am
by Lantis

Code: Select all

* * * * * 
| | | | | 
| | | | | 
| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)
what it means is that for some reason your settings are corrupted. Your month can't be zero, it has to be between 1 and 31.

Out of curiosity, what happens if you change it to be the second of the month, and then re-run the "crontab -l" and see if it is still an invalid number.

When i get an opportunity i'll see if mine also corrupts.

Also out of curiosity, if you set it to reboot in say, 15 minutes from your current time, can you check that it actually does so?

Re: Schedule reboot router

Posted: Fri May 01, 2015 5:01 am
by erez669
now i change to 2nd and get:

0 0,4,8,12,16,20 * * * date -u +"%Y.%m.%d-%H:%M:%S" >/usr/data/time_backup
0,1,11,21,31,41,51 * * * * /usr/bin/set_kernel_timezone >/dev/null 2>&1
0 0,4,8,12,16,20 * * * /tmp/bw_backup/do_bw_backup.sh
0 3 1 * * sh /usr/lib/gargoyle/reboot.sh

it's not zero.

the time is american format:

Uptime:5 days, 18 hours, 28 minutes
Current Date & Time: 05/01/15 12:04 DST

Re: Schedule reboot router

Posted: Fri May 01, 2015 5:02 am
by Lantis
ok well i think it will now work properly.

I would probably do the 15 minute experiment just to check, but i think you're good to go.

I'll confirm in a while if the issue exists for me also.

Re: Schedule reboot router

Posted: Fri May 01, 2015 5:06 am
by erez669
Lantis wrote:ok well i think it will now work properly.

I would probably do the 15 minute experiment just to check, but i think you're good to go.

I'll confirm in a while if the issue exists for me also.
the time is in american format:

Uptime:5 days, 18 hours, 28 minutes
Current Date & Time: 05/01/15 12:04 DST

i'm from israel.