sonic-buildimage/dockers/docker-syncd-cavm/start.sh

24 lines
298 B
Bash
Raw Normal View History

2016-09-25 23:48:25 -05:00
#!/bin/bash
export XP_ROOT=/usr/bin/
service rsyslog start
while true; do
# Check if redis-server starts
result=$(redis-cli ping)
if [ "$result" == "PONG" ]; then
redis-cli FLUSHALL
syncd -p /etc/ssw/AS7512/profile.ini -N
break
fi
sleep 1
done