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)
qiluo-msft authored and lguohan committed Oct 17, 2018

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent aa08555 commit 6a9bfaf
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
@@ -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
@@ -36,5 +37,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
@@ -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 6a9bfaf

Please sign in to comment.