Schedule reboot router

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
erez669
Posts: 112
Joined: Sun May 12, 2013 4:52 pm

Schedule reboot router

Post 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-)

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Schedule reboot router

Post by Lantis »

please post the output of

Code: Select all

crontab -l
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

erez669
Posts: 112
Joined: Sun May 12, 2013 4:52 pm

Re: Schedule reboot router

Post 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.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Schedule reboot router

Post 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?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

erez669
Posts: 112
Joined: Sun May 12, 2013 4:52 pm

Re: Schedule reboot router

Post 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
Last edited by erez669 on Fri May 01, 2015 5:05 am, edited 1 time in total.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Schedule reboot router

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

erez669
Posts: 112
Joined: Sun May 12, 2013 4:52 pm

Re: Schedule reboot router

Post 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.

Post Reply