Compare commits

..

No commits in common. "23a0e3bdab42d1619397ef9a97bfa9e7fabcdaf7" and "45ca6a926b5ca42353c18c9e1f0fb83c4d5b0ccf" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -18,9 +18,9 @@ RUN addgroup -S -g 777 ssl
RUN addgroup nginx ssl
# Databases
RUN wget "${CRAWLERS}" -O /tmp/crawler-user-agents.json
RUN wget ${GEOIP2_DATABASE} -O - | tar -xJf - \
&& rm usr/share/GeoIP/GeoLite2-ASN.mmdb .BUILDINFO .MTREE .PKGINFO
RUN wget "${CRAWLERS}" -O /usr/share/nginx/crawler-user-agents.json
COPY ./monit.conf /etc/monit.d/nginx.conf
COPY ./prometheusd.sh /usr/local/bin/prometheusd

View file

@ -5,13 +5,13 @@ pid=/tmp/prometheus.pid
case $1 in
start)
rm -f ${pid}
daemonize -c /tmp -p ${pid} -l ${pid} -u nobody \
/usr/local/bin/syslogize \
/usr/bin/nginx-prometheus-exporter -nginx.scrape-uri http://127.0.0.1:8080/stub_status
;;
stop)
test ! -f ${pid} || cat ${pid} | xargs -r kill
rm -f ${pid}
cat /tmp/prometheus.pid | xargs -r kill
;;
esac