Fix syncd_request_shutdown coredump in config reload on KVM sonic (#17486) (#17564)

This commit is contained in:
mssonicbld 2023-12-19 19:02:31 +08:00 committed by GitHub
parent d7ba0608ba
commit 7f03584d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,11 @@ function waitplatform() {
}
function stopplatform1() {
if ! docker top gbsyncd$DEV | grep -q /usr/bin/syncd; then
debug "syncd process in container gbsyncd$DEV is not running"
return
fi
# Invoke platform specific pre shutdown routine.
PLATFORM=`$SONIC_DB_CLI CONFIG_DB hget 'DEVICE_METADATA|localhost' platform`
PLATFORM_PRE_SHUTDOWN="/usr/share/sonic/device/$PLATFORM/plugins/gbsyncd_request_pre_shutdown"