Skip to content

Commit

Permalink
[docker-platform-monitor] add psud daemon to Pmon (#2423)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
kevinwangsk authored and yxieca committed Jan 16, 2019
1 parent e55a7d7 commit b3abf9a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dockers/docker-platform-monitor/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ fi
supervisorctl start ledd

supervisorctl start xcvrd

supervisorctl start psud
10 changes: 10 additions & 0 deletions dockers/docker-platform-monitor/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0

[program:psud]
command=/usr/bin/psud
priority=7
autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0

2 changes: 1 addition & 1 deletion rules/docker-platform-monitor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DOCKER_PLATFORM_MONITOR = docker-platform-monitor.gz
$(DOCKER_PLATFORM_MONITOR)_PATH = $(DOCKERS_PATH)/docker-platform-monitor
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(SONIC_LEDD) $(SONIC_XCVRD)
$(DOCKER_PLATFORM_MONITOR)_DEPENDS += $(LIBSWSSCOMMON) $(PYTHON_SWSSCOMMON) $(SONIC_LEDD) $(SONIC_XCVRD) $(SONIC_PSUD)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
$(DOCKER_PLATFORM_MONITOR)_PYTHON_WHEELS += $(SWSSSDK_PY2)
$(DOCKER_PLATFORM_MONITOR)_LOAD_DOCKERS = $(DOCKER_CONFIG_ENGINE)
Expand Down
5 changes: 5 additions & 0 deletions rules/sonic-psud.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# sonic-psud (SONiC PSU daemon) Debian package

SONIC_PSUD = python-sonic-psud_1.0-1_all.deb
$(SONIC_PSUD)_SRC_PATH = $(SRC_PATH)/sonic-platform-daemons/sonic-psud
SONIC_PYTHON_STDEB_DEBS += $(SONIC_PSUD)
2 changes: 1 addition & 1 deletion src/sonic-platform-daemons

0 comments on commit b3abf9a

Please sign in to comment.