2020-05-14 23:05:35 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
mkdir -p /etc/supervisor/conf.d
|
|
|
|
|
2020-08-17 17:48:04 -05:00
|
|
|
# Generate supervisord router advertiser config, /etc/radvd.conf config file, and
|
|
|
|
# the script that waits for pertinent interfaces to come up and make it executable
|
|
|
|
CFGGEN_PARAMS=" \
|
|
|
|
-d \
|
|
|
|
-t /usr/share/sonic/templates/docker-router-advertiser.supervisord.conf.j2,/etc/supervisor/conf.d/supervisord.conf \
|
|
|
|
-t /usr/share/sonic/templates/radvd.conf.j2,/etc/radvd.conf \
|
2020-08-21 15:12:01 -05:00
|
|
|
-t /usr/share/sonic/templates/wait_for_link.sh.j2,/usr/bin/wait_for_link.sh \
|
2020-08-17 17:48:04 -05:00
|
|
|
"
|
|
|
|
sonic-cfggen $CFGGEN_PARAMS
|
2020-05-14 23:05:35 -05:00
|
|
|
|
2020-08-21 15:12:01 -05:00
|
|
|
chmod +x /usr/bin/wait_for_link.sh
|
2020-05-14 23:05:35 -05:00
|
|
|
|
2023-06-25 18:36:09 -05:00
|
|
|
TZ=$(cat /etc/timezone)
|
|
|
|
rm -rf /etc/localtime
|
|
|
|
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
|
|
|
|
|
2020-11-22 23:18:44 -06:00
|
|
|
exec /usr/local/bin/supervisord
|