FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
441 views 2 comments
by
Hi,

TRB140 with existing scheduled-restart rules for the modem and device reboot.

Is it possible to change the existing rules from CLI and is there an example of the commands to use?

Many thanks in advance.
by anonymous
I discovered this can be done from CLI using crontab -l (list) and crontab -e (edit)

1 Answer

+1 vote
by anonymous

Hi,

As @TRIGGERACTIVE said, existing rules could be changed using crontab -l and crontab -e.

Also, you should be able to edit the crontab values by editing the actual periodic reboot configuration file.

Just use vi command to edit /etc/config/periodic_reboot

https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#editing_files

After you've done with the editing, execute /etc/init.d/periodic_reboot restart

And that's it, your crontab values and WebUI values will change according to the changes made in the configuration file.

EB.

by anonymous

Thanks. 

I learnt that editing /etc/config/periodic_reboot and then executing /etc/init.d/periodic_reboot restart is necessary to ensure the crontab rules do persist across device reboots.