sonic-buildimage/platform/components/docker-gbsyncd-broncos/docker-init.sh
andywongarista f377636747 Add gbsyncd container for broncos (#11154)
* Add docker-gbsyncd-broncos support
* Address review comments
* Add socket to gbsyncd
* Upgrade gbsyncd-broncos to bullseye
2022-07-28 20:27:21 +00:00

17 lines
435 B
Bash
Executable File

#! /bin/sh
GB_CONFIG=/usr/share/sonic/hwsku/gearbox_config.json
if [ ! -f $GB_CONFIG ]; then
exit 0
fi
CFGGEN_ARG="-j $GB_CONFIG"
mkdir -p /etc/supervisor/conf.d/
sonic-cfggen $CFGGEN_ARG -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
sonic-cfggen $CFGGEN_ARG -t /usr/share/sonic/templates/critical_processes.j2 > /etc/supervisor/critical_processes
exec /usr/local/bin/supervisord