Skip to content

Commit

Permalink
[fast-reboot]Avoid stopping masked services during fast-reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed Aug 27, 2022
1 parent e14f679 commit 9436be2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,12 @@ else
fi
for service in ${SERVICES_TO_STOP}; do
# Skip the masked services
state=$(systemctl is-enabled ${service})
if [[ $state == "masked" ]]; then
continue
fi
debug "Stopping ${service} ..."
# TODO: These exceptions for nat, sflow, lldp
Expand Down

0 comments on commit 9436be2

Please sign in to comment.