sonic-buildimage/platform/cavium/docker-syncd-cavm/start.sh

24 lines
298 B
Bash
Raw Normal View History

#!/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