{
  "consul": "{{ .CONSUL }}",
  "onStart": "/opt/containerbuddy/reload.sh",
  "services": [
    {
      "name": "nginx",
      "port": 80,
      "publicIp": true,
      "health": "/usr/bin/curl --fail -s -o /dev/null http://localhost/nginx_status",
      "poll": 10,
      "ttl": 25
    }
  ]
}

{
  "consul": "{{ .CONSUL }}",
  "onStart": "/opt/containerbuddy/reload.sh preStart",
  "services": [
    {
      "name": "nginx",
      "port": 80,
      "publicIp": true,
      "health": "/usr/bin/curl --fail -s -o /dev/null http://localhost/nginx_status",
      "poll": 10,
      "ttl": 25
    }
  ]
}

Use preStart arg on nginx reload.sh
Use preStart arg on nginx reload.sh
