diff options
Diffstat (limited to 'abs/core/mysql/mysqld-post.sh')
-rwxr-xr-x | abs/core/mysql/mysqld-post.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/abs/core/mysql/mysqld-post.sh b/abs/core/mysql/mysqld-post.sh new file mode 100755 index 0000000..8dc9c4e --- /dev/null +++ b/abs/core/mysql/mysqld-post.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +while true; do + response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break + echo "$response" | grep -q "mysqld is alive" && break + sleep 1 +done |