Skip to content

Commit

Permalink
create bmp container per_namespace for multi-asic (#21712)
Browse files Browse the repository at this point in the history
Why I did it
To support multi-asic platform, create bmp container per_namespace

Work item tracking
Microsoft ADO (number only):27588904
How I did it
move bmp.service from single into per namespace
  • Loading branch information
FengPan-Frank authored Feb 12, 2025
1 parent b25d4c6 commit 6e37b4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions files/build_templates/bmp.service.j2

This file was deleted.

16 changes: 16 additions & 0 deletions files/build_templates/per_namespace/bmp.service.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=BMP container
Requires=database{% if multi_instance == 'true' %}@%i{% endif %}.service
After=database{% if multi_instance == 'true' %}@%i{% endif %}.service
Before=ntp-config.service
BindsTo=sonic.target
After=sonic.target
StartLimitIntervalSec=1200
StartLimitBurst=3

[Service]
User={{ sonicadmin_user }}
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 %}
RestartSec=30

0 comments on commit 6e37b4b

Please sign in to comment.