Skip to content

Commit 6ce5143

Browse files
Rewrite the check of syncd is still running'
1 parent 4512432 commit 6ce5143

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/fast-reboot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ docker kill teamd > /dev/null
4444
# Gracefully stop syncd
4545
docker exec -ti syncd /usr/bin/syncd_request_shutdown --cold > /dev/null
4646

47-
# Check it was stopped
48-
until [[ $(docker top syncd | grep -q /usr/bin/syncd) -eq 0 ]]
47+
# Check that syncd was stopped
48+
while docker top syncd | grep -q /usr/bin/syncd
4949
do
5050
sleep 0.1
5151
done

0 commit comments

Comments
 (0)