Compare commits

..

8 commits

Author SHA1 Message Date
f
f42dedb4d9 Merge branch 'antifascista' of ssh://gitea.nulo.in:420/Sutty/containers-skel into antifascista
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-11-23 12:18:54 -03:00
f
228239bbae feat: syslogize 2022-11-23 12:18:26 -03:00
f
c4d0c8ac35 feat: 3.17 upgrade 2022-11-23 10:58:48 -03:00
f
b0dadddbb0 fix: 3.16.3 bug release 2022-11-23 10:58:28 -03:00
f
c1e94bd27f fix: deprecate 3.13 2022-11-23 10:56:44 -03:00
f
0b354f4fea releases fixing zlib cve 2022-08-09 10:36:07 -03:00
f
47f66a6060 log to syslog 2022-07-26 10:58:19 -03:00
f
ccf348f077 fix variable misnaming 2022-07-26 10:57:09 -03:00
3 changed files with 8 additions and 8 deletions

View file

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

View file

@ -1,6 +1,6 @@
check process knot with pidfile /tmp/knot.pid
start program = "/usr/sbin/knotd -d"
stop program = "/usr/sbin/knotc stop"
start program = "/usr/local/bin/syslogize /usr/sbin/knotd -d"
stop program = "/usr/local/bin/syslogize /usr/sbin/knotc stop"
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 tcp protocol dns for 3 times within 5 cycles then restart

View file

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