[syncd] Treat bcmcmd as a supervisor task so we could collect stdout/stderr (#1825)
This commit is contained in:
parent
a89b8d86cc
commit
ff237aaf18
@ -18,6 +18,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -f /var/run/sswsyncd/sswsyncd.socket
|
||||||
supervisorctl start syncd
|
supervisorctl start syncd
|
||||||
|
|
||||||
# Function: wait until syncd has created the socket for bcmcmd to connect to
|
# 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 this platform has an initialization file for the Broadcom LED microprocessor, load it
|
||||||
if [ -r ${PLATFORM_DIR}/led_proc_init.soc ]; then
|
if [ -r ${PLATFORM_DIR}/led_proc_init.soc ]; then
|
||||||
wait_syncd
|
wait_syncd
|
||||||
/usr/bin/bcmcmd -t 60 "rcload ${PLATFORM_DIR}/led_proc_init.soc"
|
supervisorctl start ledinit
|
||||||
fi
|
fi
|
||||||
|
@ -26,3 +26,11 @@ autostart=false
|
|||||||
autorestart=false
|
autorestart=false
|
||||||
stdout_logfile=syslog
|
stdout_logfile=syslog
|
||||||
stderr_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
|
||||||
|
Reference in New Issue
Block a user