From f3ab8cdf9adb393a48eb0b11b02ef423afd1c1f2 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Tue, 16 Oct 2018 11:20:39 -0700 Subject: [PATCH] [warm boot] syncd warm start could be individual warm start (#2147) 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 b7d2320955..08c50a2c37 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"