diff --git a/scripts/reboot b/scripts/reboot index 8b1f9d60c328..ee10c77ba3d0 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -24,6 +24,7 @@ fi REBOOT_USER=$(logname) PLATFORM=$(sonic-cfggen -H -v DEVICE_METADATA.localhost.platform) ASIC_TYPE=$(sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type) +SUBTYPE=$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype) VERBOSE=no EXIT_NEXT_IMAGE_NOT_EXISTS=4 EXIT_SONIC_INSTALLER_VERIFY_REBOOT=21 @@ -52,6 +53,10 @@ function tag_images() function stop_sonic_services() { + if [[ x"$SUBTYPE" == x"DualToR" ]]; then + debug "DualToR detected, stopping mux container before reboot..." + systemctl stop mux + fi if [[ x"$ASIC_TYPE" != x"mellanox" ]]; then debug "Stopping syncd process..." docker exec -i syncd /usr/bin/syncd_request_shutdown --cold > /dev/null