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 zhenggen-xu committed Jan 9, 2020
1 parent 057f92e commit f9d5d43
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 f9d5d43

Please sign in to comment.