summaryrefslogtreecommitdiff
path: root/sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2015-04-15 16:15:33 +0200
committerJohan Lundberg <lundberg@nordu.net>2015-04-15 16:15:33 +0200
commita441b737ad5b17203123f26034c846af3dca4100 (patch)
treeccdb7f4a1a689dc5f5c7b7eee48fd4e406af9bb2 /sto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d
parent924d3cb5a15eb60e729f477f18a597040d17e9b8 (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/local/etc/docker.d')
-rwxr-xr-xsto-tug-kvm2.swamid.se/overlay/usr/local/etc/docker.d/30flog20
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