|
|
@ -11,10 +11,10 @@ elif grep -q "health" /config/coredns/Corefile; then
|
|
|
|
exec \
|
|
|
|
exec \
|
|
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "redirfd -w 1 /dev/null curl -s http://localhost:8080/health" \
|
|
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "redirfd -w 1 /dev/null curl -s http://localhost:8080/health" \
|
|
|
|
cd /config/coredns \
|
|
|
|
cd /config/coredns \
|
|
|
|
/usr/bin/coredns -dns.port=53
|
|
|
|
/app/coredns -dns.port=53
|
|
|
|
else
|
|
|
|
else
|
|
|
|
exec \
|
|
|
|
exec \
|
|
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -zu localhost 53" \
|
|
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -zu localhost 53" \
|
|
|
|
cd /config/coredns \
|
|
|
|
cd /config/coredns \
|
|
|
|
/usr/bin/coredns -dns.port=53
|
|
|
|
/app/coredns -dns.port=53
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|