Skip to content

Commit

Permalink
[reboot] reduce stop service to only stop syncd (#223)
Browse files Browse the repository at this point in the history
When the service dockers are in some rare failure situations, stopping
service might get stuck. To make sure reboot always move ahead, we
could request syncd to stop, wait some time, then proceed with reboot.
  • Loading branch information
yxieca authored Mar 29, 2018
1 parent c2d13c6 commit ed432fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

function stop_sonic_services()
{
echo "Stopping sonic services..."
systemctl stop swss
systemctl stop teamd
systemctl stop bgp
systemctl stop lldp
systemctl stop snmp
echo "Stopping syncd..."
docker exec -it syncd /usr/bin/syncd_request_shutdown --cold > /dev/null
sleep 3
}

# Obtain our platform as we will mount directories with these names in each docker
Expand Down

0 comments on commit ed432fc

Please sign in to comment.