summarylogtreecommitdiffstats
path: root/mysqld-post.sh
diff options
context:
space:
mode:
authorChristian Hesse2015-06-28 22:15:42 +0200
committerChristian Hesse2015-06-28 22:15:42 +0200
commitb2000cc4bc7cdd2eeb9f90a4dff0826dbfaa7b6b (patch)
treedda01533f54694d85dc1b68df550ca4fdd556a2b /mysqld-post.sh
downloadaur-b2000cc4bc7cdd2eeb9f90a4dff0826dbfaa7b6b.tar.gz
initial import of mysql51 5.1.73-4
Diffstat (limited to 'mysqld-post.sh')
-rw-r--r--mysqld-post.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysqld-post.sh b/mysqld-post.sh
new file mode 100644
index 00000000000..8dc9c4eea9f
--- /dev/null
+++ b/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