Saltstack Official Galera Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
278B

  1. {%- from "galera/map.jinja" import slave with context -%}
  2. #!/bin/bash
  3. service {{ slave.service }} start
  4. counter=40
  5. while [ $counter -gt 0 ]
  6. do
  7. service {{ slave.service }} status
  8. if [[ $? -eq 0 ]]; then
  9. exit 0
  10. fi
  11. counter=$(( $counter - 1 ))
  12. sleep 2
  13. done
  14. exit 1