Skip to content

Commit eb27234

Browse files
authored
Revert "[fast reboot] kill teamd docker directly (sonic-net#683)" (sonic-net#690)
This reverts commit 592413b.
1 parent bb03f6c commit eb27234

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/fast-reboot

+4
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
424424
# restarting the container automatically.
425425
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
426426
debug "Stopping teamd ..."
427+
docker exec -i teamd pkill -USR2 teamd || [ $? == 1 ]
428+
while docker exec -i teamd pgrep teamd > /dev/null; do
429+
sleep 0.05
430+
done
427431
docker kill teamd > /dev/null
428432
systemctl stop teamd
429433
debug "Stopped teamd ..."

0 commit comments

Comments
 (0)