From f9d5d4366b6e8a919caa605c3df1df141d4beaaf Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Fri, 22 Nov 2019 20:39:09 -0800 Subject: [PATCH] [swss.sh] When starting, call 'systemctl restart' on dependents, not (#3807) 'systemctl start' --- files/scripts/swss.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/scripts/swss.sh b/files/scripts/swss.sh index 65eaf08148a8..f54c13697753 100755 --- a/files/scripts/swss.sh +++ b/files/scripts/swss.sh @@ -85,7 +85,9 @@ start_peer_and_dependent_services() { if [[ x"$WARM_BOOT" != x"true" ]]; then /bin/systemctl start ${PEER} for dep in ${DEPENDENT}; do - /bin/systemctl start ${dep} + # Here we call `systemctl restart` on each dependent service instead of `systemctl start` to + # ensure the services actually get stopped and started in case they were not previously stopped. + /bin/systemctl restart ${dep} done fi }