blob: e763b4665181536bf4e643298083300a113c2399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
# ###################################################
# # This file is maintained in
# #
# # #### #### #### # # #### ####
# # # # # # # ## ## # # #
# # # # # #### # ## # # # ####
# # # # # # # # # # #
# # # # # # # # # # # # # #
# # #### #### #### # # #### ####
# #
# # ... so you can't just change it locally.
# #
# ###################################################
#
# 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
|