Skip to content

Commit

Permalink
Address comment. Add check for dhcp_relay service only
Browse files Browse the repository at this point in the history
  • Loading branch information
mlok-nokia committed Jun 26, 2024
1 parent c354e20 commit 91b0986
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions files/scripts/swss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,12 @@ start_peer_and_dependent_services() {
fi
done
for dep in ${DEPENDENT}; do
state=$(is_feature_enabled $dep)
if [[ $state == "true" ]]; then
if [[ $dep == "dhcp_relay" ]]; then
state=$(is_feature_enabled $dep)
if [[ $state == "true" ]]; then
/bin/systemctl start ${dep}
fi
else
/bin/systemctl start ${dep}
fi
done
Expand Down

0 comments on commit 91b0986

Please sign in to comment.