Skip to content

Commit 607cee2

Browse files
committed
[docker-platform-monitor] add psud daemon to Pmon
* Add psud daemon to pmon container * Update submodule sonic-platform-daemons Submodule update sonic-platform-daemons: e5d8155 - [sonic-psud] add a new daemon sonic-psud to platform monitor (#20) Signed-off-by: Kevin Wang <[email protected]>
1 parent a1e382a commit 607cee2

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

dockers/docker-platform-monitor/start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ fi
2828
supervisorctl start ledd
2929

3030
supervisorctl start xcvrd
31+
32+
supervisorctl start psud

dockers/docker-platform-monitor/supervisord.conf

+10
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ autorestart=false
5454
stdout_logfile=syslog
5555
stderr_logfile=syslog
5656
startsecs=0
57+
58+
[program:psud]
59+
command=/usr/bin/psud
60+
priority=7
61+
autostart=false
62+
autorestart=false
63+
stdout_logfile=syslog
64+
stderr_logfile=syslog
65+
startsecs=0
66+

rules/docker-platform-monitor.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
DOCKER_PLATFORM_MONITOR = docker-platform-monitor.gz
44
$(DOCKER_PLATFORM_MONITOR)_PATH = $(DOCKERS_PATH)/docker-platform-monitor
5-
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(SONIC_LEDD) $(SONIC_XCVRD)
5+
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD)
66
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
77
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SWSSSDK_PY2)
88
$(DOCKER_PLATFORM_MONITOR)_LOAD_DOCKERS = $(DOCKER_CONFIG_ENGINE)

rules/sonic-psud.mk

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# sonic-psud (SONiC PSU daemon) Debian package
2+
3+
SONIC_PSUD = python-sonic-psud_1.0-1_all.deb
4+
$(SONIC_PSUD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-psud
5+
SONIC_PYTHON_STDEB_DEBS += $(SONIC_PSUD)

0 commit comments

Comments
 (0)