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
|
|
|
|
2017-11-23 18:31:37 -06:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
|
|
|
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-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
|
|
|
|
2017-05-11 13:18:10 -05:00
|
|
|
supervisorctl start portsyncd
|
|
|
|
|
|
|
|
supervisorctl start intfsyncd
|
|
|
|
|
|
|
|
supervisorctl start neighsyncd
|
|
|
|
|
|
|
|
supervisorctl start swssconfig
|
|
|
|
|
2017-11-06 00:37:16 -06:00
|
|
|
supervisorctl start vlanmgrd
|
|
|
|
|
|
|
|
supervisorctl start intfmgrd
|
|
|
|
|
2018-01-29 10:11:05 -06:00
|
|
|
supervisorctl start buffermgrd
|
|
|
|
|
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
|