Skip to content

Commit

Permalink
use console_scripts entry point to package bgpmon
Browse files Browse the repository at this point in the history
  • Loading branch information
gechiang committed Sep 19, 2020
1 parent 7af52cb commit 23785b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/base_image_files/monit_bgp
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ check process staticd matching "/usr/lib/frr/staticd"
check process bgpcfgd matching "python /usr/local/bin/bgpcfgd"
if does not exist for 5 times within 5 cycles then alert

check process bgpmon matching "python /usr/local/bin/bgpmon.py"
check process bgpmon matching "python /usr/local/bin/bgpmon"
if does not exist for 5 times within 5 cycles then alert
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/frr/supervisord/supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ dependent_startup=true
dependent_startup_wait_for=bgpd:running

[program:bgpmon]
command=/usr/local/bin/bgpmon.py
command=/usr/local/bin/bgpmon
priority=6
autostart=false
autorestart=false
Expand Down
7 changes: 6 additions & 1 deletion src/sonic-bgpcfgd/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
author_email='[email protected]',
url='https://github.com/Azure/sonic-buildimage',
packages=setuptools.find_packages(),
scripts=['bgpcfgd','bgpmon.py'],
scripts=['bgpcfgd'],
entry_points={
'console_scripts': [
'bgpmon = bgpmon:main',
]
},
install_requires=['jinja2>=2.10', 'netaddr', 'pyyaml'],
setup_requires=['pytest-runner', 'pytest'],
)

0 comments on commit 23785b5

Please sign in to comment.