[warm boot] syncd warm start could be individual warm start (#2147)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
parent
5f2b1a7896
commit
f3ab8cdf9a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user