diff --git a/scripts/fast-reboot b/scripts/fast-reboot index a3a05661ff..96f6f26ca2 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -41,6 +41,19 @@ docker kill lldp > /dev/null # Kill teamd, otherwise it gets down all LAGs docker kill teamd > /dev/null +# syncd graceful stop is supported only for Broadcoms platforms only for now +if [[ "$sonic_asic_type" = 'broadcom' ]]; +then + # Gracefully stop syncd + docker exec -ti syncd /usr/bin/syncd_request_shutdown --cold > /dev/null + + # Check that syncd was stopped + while docker top syncd | grep -q /usr/bin/syncd + do + sleep 0.1 + done +fi + # Kill other containers to make the reboot faster docker ps -q | xargs docker kill > /dev/null