#!/bin/bash # # Wait for dependent flog docker containers to be registered in local DNS. # PING_CHECK="/usr/local/bin/ping-check" logtag="flog_docker_pre-post[$ACTION]" logger -t "${logtag}" "$NAME ($IMAGE), CID: '$CID'" if [ "x$ACTION" = "xpre-start" ]; then if [ "x$NAME" = "xflog_app" ]; then ${PING_CHECK} flog_db.docker exit $? fi if [ "x$NAME" = "xflog_nginx" ]; then ${PING_CHECK} flog_app.docker exit $? fi exit 0 fi