Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 satır
210B

  1. #!/bin/bash
  2. service {{ service.service }} start
  3. counter=60
  4. while [ $counter -gt 0 ]
  5. do
  6. mysql -u root -e"quit"
  7. if [[ $? -eq 0 ]]; then
  8. exit 0
  9. fi
  10. counter=$(( $counter - 1 ))
  11. sleep 2
  12. done
  13. exit 1