view dns/files/run_mtail.sh @ 329:2bbcf00b8d2a

hgignore and reformat
author drewp@bigasterisk.com
date Sun, 23 Feb 2025 15:08:58 -0800
parents 5b88b38f2471
children
line wrap: on
line source

#!/bin/zsh
STATS_PERIOD=2m
while (true) { pkill --signal USR1 --oldest --full /usr/sbin/dnsmasq; sleep ${STATS_PERIOD} } &

rm -f /tmp/dnsmasq_log_pipe
mkfifo /tmp/dnsmasq_log_pipe

{ journalctl -fu dnsmasq_10.2.service > /tmp/dnsmasq_log_pipe } &

mtail -port 9991 -logtostderr -logs /tmp/dnsmasq_log_pipe  -progs /opt/dnsmasq/10.2
#-disable_fsnotify -poll_interval ${STATS_PERIOD}