8f348399f5
- Consolidate config.sh and start.sh scripts into one script (start.sh) - Solve issue #435 - All dockers now run supervisord as their ENTRYPOINT - All stdout/stderr output from processes managed by supervisord is now sent to syslog instead of their own files - Supervisord log messages are now also sent to syslog - Removed unused smartmontools package from docker-platform-monitor
23 lines
284 B
Bash
Executable File
23 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export XP_ROOT=/usr/bin/
|
|
|
|
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
|
|
|