blob: 92b1d05d69dc384631498d90bcb7b98031381fd9 [file] [log] [blame]
#!/bin/bash
service {{ service.service }} start
counter=60
while [ $counter -gt 0 ]
do
mysql -h {{ service.bind.address }} -u {{ service.admin.user }} -p{{ service.admin.password }} -e"quit"
if [[ $? -eq 0 ]]; then
exit 0
fi
counter=$(( $counter - 1 ))
sleep 2
done
exit 1