diff options
author | Johan Lundberg <lundberg@nordu.net> | 2015-04-15 16:15:33 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2015-04-15 16:15:33 +0200 |
commit | a441b737ad5b17203123f26034c846af3dca4100 (patch) | |
tree | ccdb7f4a1a689dc5f5c7b7eee48fd4e406af9bb2 /sto-tug-kvm2.swamid.se/overlay/usr | |
parent | 924d3cb5a15eb60e729f477f18a597040d17e9b8 (diff) |
Changed ping-check to be run with run-partssunet-ops-2015-04-15-v02
Diffstat (limited to 'sto-tug-kvm2.swamid.se/overlay/usr')
-rwxr-xr-x | sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d/30flog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d/30flog b/sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d/30flog new file mode 100755 index 0000000..a90610d --- /dev/null +++ b/sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d/30flog @@ -0,0 +1,20 @@ +#!/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 $? + if [ "x$NAME" = "xflog_nginx" ]; then + ${PING_CHECK} flog_app.docker + exit $? + fi + exit 0 +fi |