Skip to content

Commit

Permalink
Revert "[swss.sh] When starting, call 'systemctl restart' on dependen…
Browse files Browse the repository at this point in the history
…ts, not (#3807)" (#3835)

This reverts commit 351410e.
  • Loading branch information
yxieca authored and abdosi committed Jan 2, 2020
1 parent 8629dd8 commit df81943
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions files/scripts/swss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ start_peer_and_dependent_services() {
if [[ x"$WARM_BOOT" != x"true" ]]; then
/bin/systemctl start ${PEER}
for dep in ${DEPENDENT}; do
# 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}
/bin/systemctl start ${dep}
done
fi
}
Expand Down

0 comments on commit df81943

Please sign in to comment.