This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:clear_watchdog [2018/08/07 08:52] jeff |
uphp:functions:clear_watchdog [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 11: | Line 11: | ||
</ | </ | ||
- | Clears the watchdog timer. | + | Clears the watchdog timer. |
====Parameters==== | ====Parameters==== | ||
Line 25: | Line 25: | ||
<code php> | <code php> | ||
<? | <? | ||
- | clear_watchdog(); | + | clear_watchdog(); |
?> | ?> | ||
</ | </ | ||
Line 31: | Line 31: | ||
====Additional Information==== | ====Additional Information==== | ||
- | Function [[init_watchdog]] can be called | + | Function [[clear_watchdog]] is called |
- | Function [[clear_watchdog()]] is called from WattmonOS 2.26 and above once per minute automatically. | + | Function [[init_watchdog]] can be called to set the threshold in seconds for when the firmware reboots the system |
+ | |||
+ | < | ||
+ | [debug] | ||
+ | watchdog_interval=600 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | This function must be used if you are writing a script that might run longer than 5 minutes, which could possibly keep cronmin.cgi | ||
====Also See==== | ====Also See==== |