Skip to content

Commit

Permalink
[dockers][platform-monitor] Add chassis_db_init to platform monitor t…
Browse files Browse the repository at this point in the history
…asks (#7596)

I added `chassis_db_init` to the startup tasks for the `docker-platform-monitor` docker so that the script is run on startup of the switch and the chassis info is correctly provisioned to STATE_DB.

Depends on sonic-net/sonic-platform-daemons#183
  • Loading branch information
alexrallen committed May 28, 2021
1 parent b486686 commit 21b9fcc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dockers/docker-platform-monitor/docker-pmon.supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}

[program:chassis_db_init]
command=/usr/local/bin/chassis_db_init
priority=3
autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running

{% if not skip_sensors and HAVE_SENSORS_CONF == 1 %}
[program:lm-sensors]
command=/usr/bin/lm-sensors.sh
Expand Down

0 comments on commit 21b9fcc

Please sign in to comment.