FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12015 questions

14299 answers

22538 comments

35959 members

0 votes
206 views 1 comments
by

We are using custom MQTT client with Lua script and RUT240. For last resort, we want to use /dev/watchdog with supporting hardware watchdog.

In OpenWrt wiki page, OpenWrt supports watchdog with ubus. After I stopped watchdog on RT240, it rebooted after about 20 seconds. So, it seems working on also RUT240.

But I cannot change "timeout" other than 21 seconds. Can I change "timeout" to 1800 seconds ?
 

1 Answer

0 votes
by
Hi, It can be changed as below:

root@Teltonika-RUT950:~# cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished.

exit 0
root@Teltonika-RUT950:~# ubus call system watchdog '{"timeout":1800}'
{
        "status": "running",
        "timeout": 1800,
        "frequency": 5
}
root@Teltonika-RUT950:~#

Thanks
by

Thank you information about RUT950.

I want to use with RUT240. But the timeout value was not changed as following.

root@RUT240:~# ubus call system watchdog '{"timeout":1800}'
{
  "status": "running",
  "timeout": 21,
  "frequency": 5
}

root@RUT240:~# ubus call system watchdog 
{
  "status": "running",
  "timeout": 21,
  "frequency": 5
}