Skip to content

Commit

Permalink
Sensormond support (sonic-net#16089)
Browse files Browse the repository at this point in the history
Enable Sensormon daemon in PMON container.
Pls see HLD : sonic-net/SONiC#1394
  • Loading branch information
bmridul authored Feb 24, 2024
1 parent 41aa329 commit 54c1a49
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dockers/docker-platform-monitor/docker-pmon.supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,16 @@ startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}

{% if include_sensormond %}
[program:sensormond]
command=/usr/local/bin/sensormond
priority=10
autostart=false
autorestart=unexpected
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}
1 change: 1 addition & 0 deletions rules/docker-platform-monitor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PCIED_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PSUD_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_SYSEEPROMD_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_THERMALCTLD_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_SENSORMOND_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_XCVRD_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_YCABLED_PY3)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_CHASSISD_PY3)
Expand Down
10 changes: 10 additions & 0 deletions rules/sonic-sensormond.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SPATH := $($(SONIC_SENSORMOND_PY3)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-sensormond.mk rules/sonic-sensormond.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))

$(SONIC_SENSORMOND_PY3)_CACHE_MODE := GIT_CONTENT_SHA
$(SONIC_SENSORMOND_PY3)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(SONIC_SENSORMOND_PY3)_DEP_FILES := $(DEP_FILES)
$(SONIC_SENSORMOND_PY3)_SMDEP_FILES := $(SMDEP_FILES)
$(SONIC_SENSORMOND_PY3)_SMDEP_PATHS := $(SPATH)
10 changes: 10 additions & 0 deletions rules/sonic-sensormond.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# sonic-sensormond (SONiC Thermal control daemon) Debian package

# SONIC_SENSORMOND_PY3 package

SONIC_SENSORMOND_PY3 = sonic_sensormond-1.0-py3-none-any.whl
$(SONIC_SENSORMOND_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-sensormond
$(SONIC_SENSORMOND_PY3)_DEPENDS = $(SONIC_PY_COMMON_PY3) $(SONIC_PLATFORM_COMMON_PY3)
$(SONIC_SENSORMOND_PY3)_DEBS_DEPENDS = $(LIBSWSSCOMMON) $(PYTHON3_SWSSCOMMON)
$(SONIC_SENSORMOND_PY3)_PYTHON_VERSION = 3
SONIC_PYTHON_WHEELS += $(SONIC_SENSORMOND_PY3)

0 comments on commit 54c1a49

Please sign in to comment.