Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dockers/docker-platform-monitor/start.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ supervisorctl start xcvrd
{% if not skip_psud %}
supervisorctl start psud
{% endif %}

post-syseeprom -w

3 changes: 3 additions & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ wait() {
}

stop() {
{%- if docker_container_name == "pmon" %}
docker exec pmon post-syseeprom -c
{%- endif %}
docker stop {{docker_container_name}}
}

Expand Down
2 changes: 1 addition & 1 deletion rules/docker-platform-monitor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DOCKER_PLATFORM_MONITOR = docker-platform-monitor.gz
$(DOCKER_PLATFORM_MONITOR)_PATH = $(DOCKERS_PATH)/docker-platform-monitor
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSENSORS) $(LM_SENSORS) $(FANCONTROL) $(SENSORD) $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(SMARTMONTOOLS)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_DEBS += $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_DEBS += $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD) $(SONIC_POST_SYSEEPROM)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SWSSSDK_PY2)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_API_PY2)
Expand Down
5 changes: 5 additions & 0 deletions rules/sonic-post-syseeprom.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# sonic-post-syseeprom (SONiC Syseeprom gathering task) Debian package

SONIC_POST_SYSEEPROM = python-sonic-post-syseeprom_1.0-1_all.deb
$(SONIC_POST_SYSEEPROM)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-post-syseeprom
SONIC_PYTHON_STDEB_DEBS += $(SONIC_POST_SYSEEPROM)