diff options
author | Justin chi <chigang@huawei.com> | 2017-11-03 08:48:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-03 08:48:34 +0000 |
commit | cdbfdcb04670bba08b301789c6be08900da44f10 (patch) | |
tree | e2d20371b26863551ef6907601d06a538d8eea45 /compass-deck/start.sh | |
parent | 651da345e4fde74f81213fd08cc3a21a8421089a (diff) | |
parent | 905b0231e93ce2409a45dd6c4f5f983689fdb790 (diff) |
Merge "Add compass-deck"
Diffstat (limited to 'compass-deck/start.sh')
-rwxr-xr-x | compass-deck/start.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compass-deck/start.sh b/compass-deck/start.sh new file mode 100755 index 0000000..e4f2b73 --- /dev/null +++ b/compass-deck/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash +until mysql -h"compass-db" -u"root" -p"root" -e 'show databases'; do + >&2 echo "DB is unavailable - sleeping" + sleep 1 +done +>&2 echo "DB is up" +systemctl start httpd |