From 3336ecd33c1084386542ed5c7d1d049fd941ccd0 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Mon, 15 Nov 2021 19:22:56 +0100 Subject: [PATCH] naywatch: warn user Naywatch in combination with the watchdog can be tricky and dangerous when doing a sysupgrade. Add a warning to always stop naywatch first and check if procd took control over the watchdog again. Also change use_watchdog to '0'. Signed-off-by: Nick Hainke --- naywatch/Makefile | 7 ++++++- naywatch/files/naywatch.config | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/naywatch/Makefile b/naywatch/Makefile index 288f162..f79890f 100644 --- a/naywatch/Makefile +++ b/naywatch/Makefile @@ -23,7 +23,12 @@ define Package/naywatch endef define Package/naywatch/description -Reboots or triggers watchdog if no link local neighbor is available. +Reboots or triggers watchdog if no link-local neighbor is available. + +Important: +Be careful when you do a sysupgrade. Stop naywatch first, and make +sure procd took control again of the watchdog. +You can do this using 'ubus call system watchdog'. Status should be "running". endef define Package/naywatch/conffiles diff --git a/naywatch/files/naywatch.config b/naywatch/files/naywatch.config index 27147a6..b25e1f2 100644 --- a/naywatch/files/naywatch.config +++ b/naywatch/files/naywatch.config @@ -1,7 +1,7 @@ config naywatch general option check_interval '50' option watchdog_timeout '60' - option use_watchdog '1' + option use_watchdog '0' option save_logs '1' list interface 'lan' list interface 'wan'