Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,13 @@ start() {
fi

if [[ x"$WARM_BOOT" != x"true" ]]; then
/bin/systemctl stop pmon
/usr/bin/hw-management.sh chipdown
if [[ x"$(/bin/systemctl is-active pmon)" == x"active" ]]; then
/bin/systemctl stop pmon
/usr/bin/hw-management.sh chipdown
/bin/systemctl restart pmon
else
/usr/bin/hw-management.sh chipdown
fi
fi

if [[ x"$BOOT_TYPE" == x"fast" ]]; then
Expand All @@ -112,10 +117,6 @@ start() {
/usr/bin/mst start
/usr/bin/mlnx-fw-upgrade.sh
/etc/init.d/sxdkernel start

if [[ x"$WARM_BOOT" != x"true" ]]; then
/bin/systemctl start pmon
fi
fi

if [[ x"$WARM_BOOT" != x"true" ]]; then
Expand All @@ -128,10 +129,6 @@ start() {
/usr/bin/${SERVICE}.sh start
debug "Started ${SERVICE} service..."

if [[ x"$sonic_asic_platform" == x"mellanox" && x"$BOOT_TYPE" == x"fast" ]]; then
/usr/bin/hw-management.sh chipupen
fi

unlock_service_state_change
}

Expand Down