Skip to content

Commit 23785b5

Browse files
committed
use console_scripts entry point to package bgpmon
1 parent 7af52cb commit 23785b5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

dockers/docker-fpm-frr/base_image_files/monit_bgp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ check process staticd matching "/usr/lib/frr/staticd"
2323
check process bgpcfgd matching "python /usr/local/bin/bgpcfgd"
2424
if does not exist for 5 times within 5 cycles then alert
2525

26-
check process bgpmon matching "python /usr/local/bin/bgpmon.py"
26+
check process bgpmon matching "python /usr/local/bin/bgpmon"
2727
if does not exist for 5 times within 5 cycles then alert

dockers/docker-fpm-frr/frr/supervisord/supervisord.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ dependent_startup=true
8585
dependent_startup_wait_for=bgpd:running
8686

8787
[program:bgpmon]
88-
command=/usr/local/bin/bgpmon.py
88+
command=/usr/local/bin/bgpmon
8989
priority=6
9090
autostart=false
9191
autorestart=false

src/sonic-bgpcfgd/setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
author_email='pavelsh@microsoft.com',
1010
url='https://github.com/Azure/sonic-buildimage',
1111
packages=setuptools.find_packages(),
12-
scripts=['bgpcfgd','bgpmon.py'],
12+
scripts=['bgpcfgd'],
13+
entry_points={
14+
'console_scripts': [
15+
'bgpmon = bgpmon:main',
16+
]
17+
},
1318
install_requires=['jinja2>=2.10', 'netaddr', 'pyyaml'],
1419
setup_requires=['pytest-runner', 'pytest'],
1520
)

0 commit comments

Comments
 (0)