consul.sh 238 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. start_consul()
  4. {
  5. process_start consul agent -server -bootstrap-expect 1 -data-dir /root/consul/data -config-dir /root/consul/config
  6. #consul members
  7. }
  8. stop_consul()
  9. {
  10. true
  11. }
  12. monit_consul()
  13. {
  14. process_monit consul
  15. }