From 9fdbaf01961902efb364dd838e27bc0529eccf7b Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Sat, 15 Aug 2020 12:09:10 -0700 Subject: [PATCH] BGP Service script path and error fix (#5183) * BGP service script path update and error fix Co-authored-by: Vaibhav Hemant Dixit --- files/build_templates/per_namespace/bgp.service.j2 | 6 +++--- files/scripts/bgp.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/build_templates/per_namespace/bgp.service.j2 b/files/build_templates/per_namespace/bgp.service.j2 index 79e9afc4eb..9f3c72e20d 100644 --- a/files/build_templates/per_namespace/bgp.service.j2 +++ b/files/build_templates/per_namespace/bgp.service.j2 @@ -10,9 +10,9 @@ StartLimitBurst=3 [Service] User={{ sonicadmin_user }} -ExecStartPre=/usr/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %} -ExecStart=/usr/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %} -ExecStop=/usr/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %} +ExecStartPre=/usr/local/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %} +ExecStart=/usr/local/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %} +ExecStop=/usr/local/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %} Restart=always RestartSec=30 diff --git a/files/scripts/bgp.sh b/files/scripts/bgp.sh index 5da8c35cf0..b7a383ebbd 100755 --- a/files/scripts/bgp.sh +++ b/files/scripts/bgp.sh @@ -31,9 +31,9 @@ function validate_restore_count() function check_fast_boot () { if [[ $($SONIC_DB_CLI STATE_DB GET "FAST_REBOOT|system") == "1" ]]; then - FAST_BOOT = "true" + FAST_BOOT="true" else - FAST_BOOT = "false" + FAST_BOOT="false" fi }