1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00
Commit Graph

5 Commits

Author SHA1 Message Date
Vasily Trotzky
56b842f0b7 watchcat: add nopingtime option + refactoring
nopingtime UCI option rationale:
I want relatively fast reaction(i.e. 1m or 2m) for 'no internet' condition,
but i don't want my router to reboot every 1 minute if there is still no
internet after reboot.

initd_watchcat:
* add: nopingtime uci option support
* add: defaults to all non-critical options
* add: log warnings for non-critical errors(when option is missed and
default is applyed)
* fix: error handling and config_get defaults are somtimes in conflict
because of config_get defaults. They are gone now, error handling improved.
* fix: calling watchcat.sh with 'period' mode instead of 'ping'. Typo?
* fix: pingperiod default changed from period/20 to more reasonable period/5

watchcat.sh:
* add: nopingtime uci option support( sleep if uptime < nopingtime )
* remove: [ "$mode" = "allways" ] && mode="always" - not needed, already
done by initd_watchcat in load_watchcat() func
* add: echo 1 > /proc/sys/kernel/sysrq before sysrq-trigger
* refactor: eliminated once used not needed variables, code size reduced.

* PKG_RELEASE bumped up

Signed-off-by: Vasily Trotzky <trotzky.vas@gmail.com>
2020-11-19 14:50:39 +03:00
AaronA
8e1e4d7d2d Force a kill of the existing Processes to make sure they are left and the processes begin to stack up. 2017-11-02 21:52:00 +01:00
ascob
6065f01ffa watchcat: fix operation of mode 'always'
This patch fixes the watchcat init script in case of mode 'always'.
This mode just needs the config parameters: mode, period and forcedelay.
But a wrong check against the variable pingperiod, needed in the mode 'ping'
prevented mode 'always' to work properly.

Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
2016-08-24 15:47:58 +02:00
Stefan Weil
afbe8dcb87 utils/watchcat: Fix some typos (mostly found by codespell)
Note that this implies an API change (allways -> always).
The wrong spelling "allways" is still accepted for backward compatibility.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-04-30 09:46:34 +02:00
Roger
f749bd7237 watchcat: add with myself as maintainer
Signed-off-by: Roger D rogerdammit@gmail.com
2014-08-13 21:37:44 -05:00