This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:clear_watchdog [2018/08/06 09:34] admin created |
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 21: | Line 21: | ||
None | None | ||
- | ====Examples==== | + | ====Example==== |
<code php> | <code php> | ||
<? | <? | ||
- | clear_watchdog(); | + | clear_watchdog(); |
?> | ?> | ||
</ | </ | ||
Line 31: | Line 31: | ||
====Additional Information==== | ====Additional Information==== | ||
- | The init_watchdog can be called to set the value. | + | Function [[clear_watchdog]] is called from cronmin.cgi once per minute (WattmonOS 2.26 and above). |
- | ====See Also==== | + | Function [[init_watchdog]] can be called to set the threshold in seconds for when the firmware reboots the system (if function [[clear_watchdog]] has not been called during this time). Alternatively the value set by [[init_watchdog]] can be loaded at startup by adding the watchdog_interval key in the debug section of config/ |
- | [[init_watchdog()]] - Initialize watchdog timer | + | < |
+ | [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 from being able to run, depending on how many scripts can run at the same time. Or it might be needed if the default cronmin.cgi is not used. | ||
+ | |||
+ | ====Also See==== | ||
+ | |||
+ | [[init_watchdog()]] - Initialize | ||