Add info syslog for cpu_wdt.service (#16678)

Why I did it
Add info syslog for cpu_wdt.service when trigger watchdog arm action.

How I did it
Add info syslog for cpu_wdt.service when trigger watchdog arm action.
This commit is contained in:
Zhijian Li 2023-09-25 20:59:44 -07:00 committed by mssonicbld
parent 1ff84b2273
commit 8c9e2ea10f

View File

@ -79,6 +79,7 @@ if [[ "${ACTION}" == "start" ]]; then
log_info "Enable keep alive messaging every $KEEPALIVE seconds"
while [[ ${CPUWDT_MAIN_TASK_RUNNING_FLAG} == "true" ]]; do
watchdogutil arm -s "${TIMEOUT}" > /dev/null
log_info "Keep alive message sent [RC=$?]. Will sleep ${KEEPALIVE} seconds."
sleep "${KEEPALIVE}"
done
log_info "Keep alive messaging has been disabled"