From a927174bb820c5f7adfaf845bedb90ff7617e13e Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Fri, 12 Oct 2018 16:13:11 +0000 Subject: [PATCH] [warm boot] syncd warm start could be individual warm start Signed-off-by: Ying Xie --- files/scripts/syncd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index b7d23209557f..08c50a2c37c5 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -30,8 +30,9 @@ function unlock_service_state_change() function check_warm_boot() { SYSTEM_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|system" enable` + SERVICE_WARM_START=`/usr/bin/redis-cli -n 4 hget "WARM_RESTART|${SERVICE}" enable` # SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful. - if [[ x"$SYSTEM_WARM_START" == x"true" ]]; then + if [[ x"$SYSTEM_WARM_START" == x"true" ]] || [[ x"$SERVICE_WARM_START" == x"true" ]]; then WARM_BOOT="true" else WARM_BOOT="false"