Skip to content

Commit

Permalink
Revert "[fast reboot] kill teamd docker directly (sonic-net#683)" (so…
Browse files Browse the repository at this point in the history
…nic-net#690)

This reverts commit 592413b.
  • Loading branch information
yxieca authored Oct 3, 2019
1 parent bb03f6c commit eb27234
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
# restarting the container automatically.
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
debug "Stopping teamd ..."
docker exec -i teamd pkill -USR2 teamd || [ $? == 1 ]
while docker exec -i teamd pgrep teamd > /dev/null; do
sleep 0.05
done
docker kill teamd > /dev/null
systemctl stop teamd
debug "Stopped teamd ..."
Expand Down

0 comments on commit eb27234

Please sign in to comment.