From: Dharmik Parmar Date: Sat, 9 May 2026 20:17:48 +0000 (+0530) Subject: watchcat: clarify restart log wording X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=624ac97d9436d2a6d1d9aef1d06fd4ede6bde02b;p=openwrt-packages.git watchcat: clarify restart log wording Clarify the restart_iface logging so the message reflects that the configured action happens only after the failure period is reached. Signed-off-by: Dharmik Parmar --- diff --git a/utils/watchcat/files/watchcat.sh b/utils/watchcat/files/watchcat.sh index 5167911fd..7770c4381 100644 --- a/utils/watchcat/files/watchcat.sh +++ b/utils/watchcat/files/watchcat.sh @@ -154,11 +154,11 @@ watchcat_monitor_network() { time_lastcheck_withinternet="$time_now" else if [ "$script" != "" ]; then - logger -p daemon.info -t "watchcat[$$]" "Could not reach $host via \"$iface\" for \"$((time_now - time_lastcheck_withinternet))\" seconds. Running script after reaching \"$failure_period\" seconds" + logger -p daemon.info -t "watchcat[$$]" "Could not reach $host via \"$iface\" for \"$((time_now - time_lastcheck_withinternet))\" seconds. Will run the script after \"$failure_period\" seconds of failed reachability" elif [ "$iface" != "" ]; then - logger -p daemon.info -t "watchcat[$$]" "Could not reach $host via \"$iface\" for \"$((time_now - time_lastcheck_withinternet))\" seconds. Restarting \"$iface\" after reaching \"$failure_period\" seconds" + logger -p daemon.info -t "watchcat[$$]" "Could not reach $host via \"$iface\" for \"$((time_now - time_lastcheck_withinternet))\" seconds. Will restart \"$iface\" after \"$failure_period\" seconds of failed reachability" else - logger -p daemon.info -t "watchcat[$$]" "Could not reach $host for \"$((time_now - time_lastcheck_withinternet))\" seconds. Restarting networking after reaching \"$failure_period\" seconds" + logger -p daemon.info -t "watchcat[$$]" "Could not reach $host for \"$((time_now - time_lastcheck_withinternet))\" seconds. Will restart networking after \"$failure_period\" seconds of failed reachability" fi fi done