diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-11-01 11:56:50 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-11-03 11:48:46 +0800 |
commit | 905b0231e93ce2409a45dd6c4f5f983689fdb790 (patch) | |
tree | 8b3c8c78773194e048072368fe793135a05e44f1 /compass-deck/start.sh | |
parent | 3656ab7b5e3f2f26f7c98f9dcc97b3c461fa2a76 (diff) |
Add compass-deck
RESTful API and DB Handlers for Compass
Change-Id: I1ce411f279943764c286ea48dca9185d453cf254
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
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 |