Skip to content

Commit

Permalink
[syncd] Treat bcmcmd as a supervisor task so we could collect stdout/…
Browse files Browse the repository at this point in the history
…stderr (#1825)
  • Loading branch information
qiluo-msft authored Jun 29, 2018
1 parent a89b8d8 commit ff237aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/broadcom/docker-syncd-brcm/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ else
fi
fi

rm -f /var/run/sswsyncd/sswsyncd.socket
supervisorctl start syncd

# Function: wait until syncd has created the socket for bcmcmd to connect to
Expand All @@ -33,5 +34,5 @@ wait_syncd() {
# If this platform has an initialization file for the Broadcom LED microprocessor, load it
if [ -r ${PLATFORM_DIR}/led_proc_init.soc ]; then
wait_syncd
/usr/bin/bcmcmd -t 60 "rcload ${PLATFORM_DIR}/led_proc_init.soc"
supervisorctl start ledinit
fi
8 changes: 8 additions & 0 deletions platform/broadcom/docker-syncd-brcm/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog

[program:ledinit]
command=/usr/bin/bcmcmd -t 60 "rcload /usr/share/sonic/platform/led_proc_init.soc"
priority=4
autostart=false
autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog

0 comments on commit ff237aa

Please sign in to comment.