Skip to content

Commit

Permalink
Fix syncd_request_shutdown coredump in config reload on KVM sonic (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mssonicbld authored Dec 19, 2023
1 parent d7ba060 commit 7f03584
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/scripts/gbsyncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7f03584

Please sign in to comment.