Sergio Slobodrian | 84d4ae2 | 2017-04-24 12:39:08 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | cd / | ||||
Sergio Slobodrian | 8423077 | 2017-04-24 16:33:39 -0400 | [diff] [blame] | 4 | nginx -c /nginx_config/nginx.conf& |
5 | sleep 2 # Let nginx get settled bfore starting consul-template to avoid attemtps to reload resulting in errors. | ||||
6 | exec consul-template -reload-signal='SIGHUP' -consul $CONSUL_ADDR -template="nginx_config/nginx-upstreams.ctmpl:nginx_config/upstreams/voltha-upstreams.conf:nginx -s reload" |