Skip to content

Commit ef3370d

Browse files
authored
[fast-reboot]: Stop sflow during fast-reboot (sonic-net#1296)
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.
1 parent ff1db4d commit ef3370d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/fast-reboot

+7-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,13 @@ debug "Stopping bgp ..."
558558
systemctl stop bgp
559559
debug "Stopped bgp ..."
560560
561-
# Kill lldp, otherwise it sends information about reboot.
561+
# Kill sflow docker
562+
debug "Stopping sflow ..."
563+
container kill sflow &> /dev/null || debug "Docker sflow is not running ($?) ..."
564+
systemctl stop sflow
565+
debug "Stopped sflow ..."
566+
567+
# Kill lldp, otherwise it sends informotion about reboot.
562568
# We call `docker kill lldp` to ensure the container stops as quickly as possible,
563569
# then immediately call `systemctl stop lldp` to prevent the service from
564570
# restarting the container automatically.

0 commit comments

Comments
 (0)