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 GitHub
parent 3a01ee9be8
commit 3d6389b481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"