Skip to content

Commit

Permalink
[syncd.sh] move "start pmon" out of the "warm reboot != true" conditi…
Browse files Browse the repository at this point in the history
…onal branch to fix the issue that pmon not started after warm reboot
  • Loading branch information
Stephen Sun committed Sep 12, 2019
1 parent cce1785 commit 226039c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ start() {
debug "pmon is active while syncd starting, stop it first"
fi
/usr/bin/hw-management.sh chipdown
debug "Starting pmon service..."
/bin/systemctl restart pmon
debug "Started pmon service"
fi

debug "Starting pmon service..."
/bin/systemctl start pmon
debug "Started pmon service"

if [[ x"$BOOT_TYPE" == x"fast" ]]; then
/usr/bin/hw-management.sh chipupdis
fi
Expand Down

0 comments on commit 226039c

Please sign in to comment.