PKGBUILDs/extra/mysql/mysqld-post.sh

8 lines
170 B
Bash
Raw Normal View History

2012-08-20 12:27:25 +00:00
#!/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