2017-05-08 17:43:31 -05:00
|
|
|
#!/usr/bin/env bash
|
2016-07-26 14:01:58 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
mkdir -p /etc/swss/config.d/
|
2017-04-21 16:28:30 -05:00
|
|
|
|
2018-11-28 00:02:30 -06:00
|
|
|
sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
2017-11-23 18:31:37 -06:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/ports.json.j2 > /etc/swss/config.d/ports.json
|
2017-02-02 22:34:34 -06:00
|
|
|
|
2018-09-24 16:56:37 -05:00
|
|
|
# Executed HWSKU specific initialization tasks.
|
|
|
|
if [ -x /usr/share/sonic/hwsku/hwsku-init ]; then
|
|
|
|
/usr/share/sonic/hwsku/hwsku-init
|
|
|
|
fi
|
|
|
|
|
2018-02-20 16:38:13 -06:00
|
|
|
export platform=`sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`
|
2016-07-26 14:01:58 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
rm -f /var/run/rsyslogd.pid
|
2016-10-24 16:05:56 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
supervisorctl start rsyslogd
|
2016-07-26 14:01:58 -05:00
|
|
|
|
2017-05-08 17:43:31 -05:00
|
|
|
supervisorctl start orchagent
|
2016-09-25 23:48:25 -05:00
|
|
|
|
2018-11-09 19:06:09 -06:00
|
|
|
supervisorctl start restore_neighbors
|
|
|
|
|
2017-05-11 13:18:10 -05:00
|
|
|
supervisorctl start portsyncd
|
|
|
|
|
|
|
|
supervisorctl start neighsyncd
|
|
|
|
|
|
|
|
supervisorctl start swssconfig
|
|
|
|
|
2019-02-01 01:28:31 -06:00
|
|
|
supervisorctl start vrfmgrd
|
|
|
|
|
2017-11-06 00:37:16 -06:00
|
|
|
supervisorctl start vlanmgrd
|
|
|
|
|
|
|
|
supervisorctl start intfmgrd
|
|
|
|
|
2018-08-20 13:19:16 -05:00
|
|
|
supervisorctl start portmgrd
|
|
|
|
|
2018-01-29 10:11:05 -06:00
|
|
|
supervisorctl start buffermgrd
|
|
|
|
|
2018-07-26 15:39:08 -05:00
|
|
|
supervisorctl start enable_counters
|
|
|
|
|
2018-11-28 23:58:59 -06:00
|
|
|
supervisorctl start nbrmgrd
|
|
|
|
|
2019-04-23 22:38:08 -05:00
|
|
|
supervisorctl start vxlanmgrd
|
|
|
|
|
2017-05-15 19:06:19 -05:00
|
|
|
# Start arp_update when VLAN exists
|
2017-09-12 16:13:27 -05:00
|
|
|
VLAN=`sonic-cfggen -d -v 'VLAN.keys() | join(" ") if VLAN'`
|
2017-05-15 19:06:19 -05:00
|
|
|
if [ "$VLAN" != "" ]; then
|
|
|
|
supervisorctl start arp_update
|
|
|
|
fi
|