[syncd] Treat bcmcmd as a supervisor task so we could collect stdout/stderr (#1825)

This commit is contained in:
Qi Luo
2018-06-29 08:37:20 -07:00
committed by GitHub
parent a89b8d86cc
commit ff237aaf18
2 changed files with 10 additions and 1 deletions

View File

@@ -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
@@ -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

View File

@@ -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