[dockers][platform-monitor] Add chassis_db_init to platform monitor tasks (#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 https://github.com/Azure/sonic-platform-daemons/pull/183
This commit is contained in:
Alexander Allen 2021-05-28 15:01:03 -04:00 committed by GitHub
parent b486686f90
commit 21b9fccd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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