Compare commits
8 commits
299437e2b9
...
f42dedb4d9
Author | SHA1 | Date | |
---|---|---|---|
|
f42dedb4d9 | ||
|
228239bbae | ||
|
c4d0c8ac35 | ||
|
b0dadddbb0 | ||
|
c1e94bd27f | ||
|
0b354f4fea | ||
|
47f66a6060 | ||
|
ccf348f077 |
3 changed files with 8 additions and 8 deletions
|
@ -18,6 +18,6 @@ pipeline:
|
||||||
event: push
|
event: push
|
||||||
matrix:
|
matrix:
|
||||||
ALPINE_VERSION:
|
ALPINE_VERSION:
|
||||||
- 3.15.5
|
- 3.17.0
|
||||||
KNOT_VERSION:
|
KNOT_VERSION:
|
||||||
- 3.1.8
|
- 3.1.9
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
check process knot with pidfile /tmp/knot.pid
|
check process knot with pidfile /tmp/knot.pid
|
||||||
start program = "/usr/sbin/knotd -d"
|
start program = "/usr/local/bin/syslogize /usr/sbin/knotd -d"
|
||||||
stop program = "/usr/sbin/knotc stop"
|
stop program = "/usr/local/bin/syslogize /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
|
||||||
|
|
|
@ -6,11 +6,11 @@ pid=/tmp/prometheus.pid
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
test -f $tmp && echo "prometheus-exporter already running"
|
test -f $pid && echo "prometheus-exporter already running"
|
||||||
daemonize -c /tmp -p $tmp -l $tmp -u knot /usr/bin/knot-prometheus-exporter ${STATS}
|
daemonize -c /tmp -p $pid -l $pid -u knot /usr/local/bin/syslogize /usr/bin/knot-prometheus-exporter ${STATS}
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
test -f $tmp && cat $tmp | xargs -r kill
|
test -f $pid && cat $pid | xargs -r kill
|
||||||
rm -f $tmp
|
rm -f $pid
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue