Skip to content

Commit

Permalink
[swss.sh] When starting, call 'systemctl restart' on dependents, not (s…
Browse files Browse the repository at this point in the history
…onic-net#3807)

'systemctl start'
  • Loading branch information
jleveque authored and yxieca committed Nov 23, 2019
1 parent f943440 commit 351410e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/scripts/swss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 351410e

Please sign in to comment.