Revert "[swss.sh] When starting, call 'systemctl restart' on dependents, not (#3807)" (#3835)

This reverts commit 351410ea8c.
This commit is contained in:
Ying Xie 2019-12-02 15:54:55 -08:00 committed by GitHub
parent eff9d86872
commit fc36ca6e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}