2016-09-28 13:15:02 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-27 17:10:02 -06:00
|
|
|
echo "Set onie_platform to x86_64-barefoot_p4-r0"
|
|
|
|
export onie_platform=x86_64-barefoot_p4-r0
|
|
|
|
|
2016-09-28 13:15:02 -05:00
|
|
|
echo "Start rsyslog"
|
2017-03-29 20:07:25 -05:00
|
|
|
rm -f /var/run/rsyslogd.pid
|
2016-09-28 13:15:02 -05:00
|
|
|
service rsyslog start
|
|
|
|
|
|
|
|
echo "Start redis server"
|
2017-11-07 00:45:50 -06:00
|
|
|
service redis-server start &
|
|
|
|
sleep 3
|
2016-09-28 13:15:02 -05:00
|
|
|
|
2017-11-07 00:45:50 -06:00
|
|
|
redis-cli flushall
|
2016-09-28 13:15:02 -05:00
|
|
|
|
2017-11-07 00:45:50 -06:00
|
|
|
echo "Veth setup"
|
|
|
|
veth_setup.sh > /tmp/veth_setup.log 2>&1
|
2016-09-28 13:15:02 -05:00
|
|
|
|
|
|
|
echo "Start BMV2"
|
2017-11-07 00:45:50 -06:00
|
|
|
/scripts/run_bm.sh > /tmp/run_bm.log 2>&1 &
|
2016-09-28 13:15:02 -05:00
|
|
|
sleep 15
|
|
|
|
|
|
|
|
redis-cli -n 1 set LOGLEVEL DEBUG
|
|
|
|
|
|
|
|
echo "Start Syncd"
|
|
|
|
syncd -N > /tmp/syncd.log 2>&1 &
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
echo "Start Orchagent"
|
|
|
|
orchagent $* > /tmp/orchagent.log 2>&1 &
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
echo "Start Portsyncd"
|
|
|
|
portsyncd -p /port_config.ini > /tmp/portsyncd.log 2>&1 &
|
|
|
|
|
|
|
|
echo "Start Intfsync"
|
|
|
|
intfsyncd > /tmp/intfsyncd.log 2>&1 &
|
|
|
|
|
|
|
|
echo "Start Neighsyncd"
|
|
|
|
neighsyncd > /tmp/neighsyncd.log 2>&1 &
|
|
|
|
|
|
|
|
echo "Start Fpmsyncd"
|
|
|
|
fpmsyncd > /tmp/fpmsyncd.log 2>&1 &
|