Skip to content

Commit

Permalink
[fast-reboot]: Stop sflow during fast-reboot (#1296)
Browse files Browse the repository at this point in the history
Sflow docker is newly added and this needs to be stopped during fast-reboot. Otherwise sflowmgrd in sflow docker is accessing database service after is stopped.
  • Loading branch information
jangidrk committed Dec 23, 2020
1 parent ff1db4d commit ef3370d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,13 @@ debug "Stopping bgp ..."
systemctl stop bgp
debug "Stopped bgp ..."
# Kill lldp, otherwise it sends information about reboot.
# Kill sflow docker
debug "Stopping sflow ..."
container kill sflow &> /dev/null || debug "Docker sflow is not running ($?) ..."
systemctl stop sflow
debug "Stopped sflow ..."
# Kill lldp, otherwise it sends informotion about reboot.
# We call `docker kill lldp` to ensure the container stops as quickly as possible,
# then immediately call `systemctl stop lldp` to prevent the service from
# restarting the container automatically.
Expand Down

0 comments on commit ef3370d

Please sign in to comment.