Compare commits

..

No commits in common. "f42dedb4d907d1c5c9b45b6d7e911ea72744bf8d" and "299437e2b97a8dcd981c70e98a5ecd0241f6fe82" have entirely different histories.

3 changed files with 8 additions and 8 deletions

View file

@ -18,6 +18,6 @@ pipeline:
event: push event: push
matrix: matrix:
ALPINE_VERSION: ALPINE_VERSION:
- 3.17.0 - 3.15.5
KNOT_VERSION: KNOT_VERSION:
- 3.1.9 - 3.1.8

View file

@ -1,6 +1,6 @@
check process knot with pidfile /tmp/knot.pid check process knot with pidfile /tmp/knot.pid
start program = "/usr/local/bin/syslogize /usr/sbin/knotd -d" start program = "/usr/sbin/knotd -d"
stop program = "/usr/local/bin/syslogize /usr/sbin/knotc stop" stop program = "/usr/sbin/knotc stop"
if 5 restarts within 8 cycles then alert if 5 restarts within 8 cycles then alert
if failed port 53 type udp protocol dns for 3 times within 5 cycles then restart if failed port 53 type udp protocol dns for 3 times within 5 cycles then restart
if failed port 53 type tcp protocol dns for 3 times within 5 cycles then restart if failed port 53 type tcp protocol dns for 3 times within 5 cycles then restart

View file

@ -6,11 +6,11 @@ pid=/tmp/prometheus.pid
case $1 in case $1 in
start) start)
test -f $pid && echo "prometheus-exporter already running" test -f $tmp && echo "prometheus-exporter already running"
daemonize -c /tmp -p $pid -l $pid -u knot /usr/local/bin/syslogize /usr/bin/knot-prometheus-exporter ${STATS} daemonize -c /tmp -p $tmp -l $tmp -u knot /usr/bin/knot-prometheus-exporter ${STATS}
;; ;;
stop) stop)
test -f $pid && cat $pid | xargs -r kill test -f $tmp && cat $tmp | xargs -r kill
rm -f $pid rm -f $tmp
;; ;;
esac esac