Add dnsmasq so nginx will allow an upstream service to not block startup
This commit is contained in:
parent
9affe193db
commit
16ec19d356
8 changed files with 27 additions and 7 deletions
|
@ -2,9 +2,6 @@
|
|||
|
||||
echo 'Starting nginx'
|
||||
|
||||
NAMESERVER=`cat /etc/resolv.conf | grep "nameserver" | awk '{print $2}' | tr '\n' ' '`
|
||||
echo "resolver $NAMESERVER valid=10s;" > /conf/nginx/resolver.conf
|
||||
|
||||
/usr/sbin/nginx -c /conf/nginx/nginx.conf
|
||||
|
||||
echo 'Nginx exited'
|
||||
|
|
Reference in a new issue