# Mt300n v2 watchdog howto

**URL:** <https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169>\
**Category:** Router\
**Created:** [November 14, 2023, 9:17am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169 "2023-11-14T09:17:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![galenzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@galenzhao](https://forum.gl-inet.com/u/galenzhao)\
**Post date:** [November 14, 2023, 9:17am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/1 "2023-11-14T09:17:57Z")

</div>

is there any doc for the watchdog function on mt300n v2?  
my router is not stable for unknown reasons.  
I want to enable the watchdog and feed it cron.  
so it can restart if my program not running correctly.

tried ‘opkg install watchdog’ with no success.  
I can see a [watchdogd] process with ps.

---

<div class="post-metadata">

**Author:** ![galenzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@galenzhao](https://forum.gl-inet.com/u/galenzhao)\
**Post date:** [November 14, 2023, 9:39am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/2 "2023-11-14T09:39:15Z")

</div>

seems here:

> **[Hardware watchdog](https://openwrt.org/docs/guide-user/hardware/watchdog#controlling_the_watchdog)**
>
> Hardware watchdog While older versions of OpenWrt used the watchdog daemon from BusyBox, all new versions implement the watchdog daemon via procd, which is the init process (PID1). Therefore on modern OpenWrt, you will never see the watchdog process...

I’ll try to change it to manual mode.

---

<div class="post-metadata">

**Author:** ![Riktastic](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/riktastic/32/13217_2.png) [@Riktastic](https://forum.gl-inet.com/u/Riktastic)\
**Post date:** [November 14, 2023, 4:13pm UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/3 "2023-11-14T16:13:37Z")

</div>

Hi @galenzhao , there it does not seem to be a function of the Gl-iNet shell nor as the article states is it a function of the official OpenWrt shell (LuCI).

Have you tried editing the files that the article mentions?

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 14, 2023, 6:30pm UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/4 "2023-11-14T18:30:57Z")

</div>

I put core services (eg: dropbear, dnsmasq, cron, nginx, etc.) into `monit` rc files. Any `.pid` found in `/var/run` can be managed that way.

`watchcat` might be a viable option if you’re more focused on ensuring WAN/LAN connectivity. It’s also in the default GL feeds.

(Firmware(s) 4.4.6-release1, 4.37-release4)

> **[Monit](https://en.wikipedia.org/wiki/Monit)**
>
> Monit is a free, open-source process supervision tool for Unix and Linux. With Monit, system status can be viewed directly from the command line, or via the native HTTP(S) web server. Monit is able to do automatic maintenance, repair, and run meaningful causal actions in error situations. Monit rose to popularity with Ruby on Rails and the Mongrel web server, because a tool was needed that could manage the many identical Mongrel processes that needed to be run to support a scalable Ruby on Rai Mo...

> **[Watchcat - network watchdog utility](https://openwrt.org/docs/guide-user/advanced/watchcat)**
>
> Watchcat - network watchdog utility Install the packages watchcat and luci-app-watchcat. Watchcat is a ping-watchdog utility that allows you to set up rules for when a ping to a particular host fails. The following modes of operation are available...

---

<div class="post-metadata">

**Author:** ![galenzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@galenzhao](https://forum.gl-inet.com/u/galenzhao)\
**Post date:** [November 15, 2023, 3:12am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/5 "2023-11-15T03:12:42Z")

</div>

tried and not working.  
seems gl feed watchdog in kernel.

---

<div class="post-metadata">

**Author:** ![galenzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@galenzhao](https://forum.gl-inet.com/u/galenzhao)\
**Post date:** [November 15, 2023, 3:15am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/6 "2023-11-15T03:15:24Z")

</div>

thanks for your info,  
but I need a hw watchdog, cuz my situation is system-wide unstable.  
cron isn’t working at that time.

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 15, 2023, 3:18am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/7 "2023-11-15T03:18:17Z")

</div>

From my bookmarks, untested/unconfirmed:

> Focus of this article is using hardware watchdog on OpenWrt, and most embedded devices that OpenWrt uses have real hardware watchdog in their [SoC](https://en.wikipedia.org/wiki/System_on_a_chip).

> **[Manually controlling OpenWrt hardware watchdog](http://kernelreloaded.com/manually-controlling-openwrt-hardware-watchdog/)**
>
> Introduction to hardware watchdogs Function of hardware watchdog is to monitor if system is working correctly and if it goes into an unknown state (ie. freezes or stops working as expected) to return it to a known state - usually by resetting or...

> **[Watchdog timer setup](https://forum.openwrt.org/t/watchdog-timer-setup/76576/5)**
>
> This way should make it restart every hour: sed -i -e " \\$i ubus call system watchdog '{\\"timeout\\":3600}' \\$i ubus call system watchdog '{\\"stop\\":true}' " /etc/rc.local /etc/init.d/done boot

---

<div class="post-metadata">

**Author:** ![galenzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@galenzhao](https://forum.gl-inet.com/u/galenzhao)\
**Post date:** [November 15, 2023, 4:27am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/8 "2023-11-15T04:27:46Z")

</div>

it works.

following,

> **[Manually controlling OpenWrt hardware watchdog](http://kernelreloaded.com/manually-controlling-openwrt-hardware-watchdog/)**
>
> Introduction to hardware watchdogs Function of hardware watchdog is to monitor if system is working correctly and if it goes into an unknown state (ie. freezes or stops working as expected) to return it to a known state - usually by resetting or...

and it must do once, echo 1 \> /dev/watchdog  
so the watchdog can start working

it didn’t work at first time I only changed the watchdog setting, and waited for a reset,  
but echo something to watchdog then wait for 30s the device reset.

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [November 15, 2023, 8:19am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/9 "2023-11-15T08:19:39Z")

</div>

Good stuff. Feel free to mark ‘solution’ to let others know.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:27am UTC](https://forum.gl-inet.com/t/mt300n-v2-watchdog-howto/35169/10 "2025-10-29T04:27:00Z")

</div>


