From deceeb5209ddc27fb3c9014c5d8850ec8aa47bad Mon Sep 17 00:00:00 2001 From: Gen-Hwa Chiang Date: Thu, 24 Sep 2020 05:05:18 +0000 Subject: [PATCH] Renamed sonic-bgpcfgd/bgpmon_proj directory to sonic-bfgcfgd/bgpmon so it is in sync with master branch naming change. Also made bgpmon auto restart enabled --- dockers/docker-fpm-frr/supervisord.conf | 2 +- src/sonic-bgpcfgd/{bgpmon_proj => bgpmon}/__init__.py | 0 src/sonic-bgpcfgd/{bgpmon_proj => bgpmon}/bgpmon.py | 0 src/sonic-bgpcfgd/setup.py | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/sonic-bgpcfgd/{bgpmon_proj => bgpmon}/__init__.py (100%) rename src/sonic-bgpcfgd/{bgpmon_proj => bgpmon}/bgpmon.py (100%) diff --git a/dockers/docker-fpm-frr/supervisord.conf b/dockers/docker-fpm-frr/supervisord.conf index ee04e00fc359..a01ed8fd09a6 100644 --- a/dockers/docker-fpm-frr/supervisord.conf +++ b/dockers/docker-fpm-frr/supervisord.conf @@ -86,7 +86,7 @@ stderr_logfile=syslog command=/usr/local/bin/bgpmon priority=6 autostart=false -autorestart=false +autorestart=true startsecs=0 stdout_logfile=syslog stderr_logfile=syslog diff --git a/src/sonic-bgpcfgd/bgpmon_proj/__init__.py b/src/sonic-bgpcfgd/bgpmon/__init__.py similarity index 100% rename from src/sonic-bgpcfgd/bgpmon_proj/__init__.py rename to src/sonic-bgpcfgd/bgpmon/__init__.py diff --git a/src/sonic-bgpcfgd/bgpmon_proj/bgpmon.py b/src/sonic-bgpcfgd/bgpmon/bgpmon.py similarity index 100% rename from src/sonic-bgpcfgd/bgpmon_proj/bgpmon.py rename to src/sonic-bgpcfgd/bgpmon/bgpmon.py diff --git a/src/sonic-bgpcfgd/setup.py b/src/sonic-bgpcfgd/setup.py index e2a3e58e37ba..29d441e09a66 100755 --- a/src/sonic-bgpcfgd/setup.py +++ b/src/sonic-bgpcfgd/setup.py @@ -12,7 +12,7 @@ scripts=['bgpcfgd'], entry_points={ 'console_scripts': [ - 'bgpmon = bgpmon_proj.bgpmon:main', + 'bgpmon = bgpmon.bgpmon:main', ] }, install_requires=['jinja2>=2.10', 'netaddr', 'pyyaml'],