From c884f260996f3d98b42996a0180201e73b1f93cf Mon Sep 17 00:00:00 2001 From: zhenggen-xu Date: Mon, 10 Feb 2020 14:29:35 -0800 Subject: [PATCH] [docker-frr] Fix the start.sh where it fails in case no WARM_RESTART in configDB (#41) Signed-off-by: Zhenggen Xu --- dockers/docker-fpm-frr/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-fpm-frr/start.sh b/dockers/docker-fpm-frr/start.sh index b3cef5e63244..e56887ba2a62 100755 --- a/dockers/docker-fpm-frr/start.sh +++ b/dockers/docker-fpm-frr/start.sh @@ -34,7 +34,7 @@ rm -f /var/run/rsyslogd.pid supervisorctl start rsyslogd # start eoiu pulling, only if configured so -if [[ $(sonic-cfggen -d -v 'WARM_RESTART.bgp.bgp_eoiu') == 'true' ]]; then +if [[ ! -z $(sonic-cfggen -d -v 'WARM_RESTART') ]] && [[ $(sonic-cfggen -d -v 'WARM_RESTART.bgp.bgp_eoiu') == 'true' ]]; then supervisorctl start bgp_eoiu_marker fi