blob: bb0ed3716020f5fc64853f17a21810ca813f7c9d [file] [log] [blame]
Sergio Slobodrianff52e1b2017-04-24 12:39:08 -04001#!/bin/bash
2
3cd /
Sergio Slobodrian205b4192017-04-24 16:33:39 -04004nginx -c /nginx_config/nginx.conf&
5sleep 2 # Let nginx get settled bfore starting consul-template to avoid attemtps to reload resulting in errors.
6exec consul-template -reload-signal='SIGHUP' -consul $CONSUL_ADDR -template="nginx_config/nginx-upstreams.ctmpl:nginx_config/upstreams/voltha-upstreams.conf:nginx -s reload"