watchcat: clarify restart log wording
authorDharmik Parmar <redacted>
Sat, 9 May 2026 20:17:48 +0000 (01:47 +0530)
committerHannu Nyman <redacted>
Tue, 23 Jun 2026 06:16:47 +0000 (09:16 +0300)
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 <redacted>
utils/watchcat/files/watchcat.sh

index 5167911fd38b6fc1895d10f86104fc684ecf3de6..7770c4381be4cebc42797a90669161b89ce69ebe 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT