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-10-29 13:50:57 -05:00
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json
|
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -d -t /usr/share/sonic/templates/ports.json.j2 > /etc/swss/config.d/ports.json
|
2017-02-02 22:34:34 -06:00
|
|
|
|
2017-09-12 16:13:27 -05:00
|
|
|
export platform=`sonic-cfggen -v 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
|
|
|
|
|
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
|