From 9436be2ac729303ea9b1e7241f908c996c74974a Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Thu, 25 Aug 2022 22:02:56 +0000 Subject: [PATCH] [fast-reboot]Avoid stopping masked services during fast-reboot --- scripts/fast-reboot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index cd3e8237c3..ac96726281 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -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