From 47f66a60601972f85480d6363e06488c39b36008 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 26 Jul 2022 10:58:19 -0300 Subject: [PATCH] log to syslog --- prometheusd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheusd.sh b/prometheusd.sh index 5e6331e..3be2e8d 100755 --- a/prometheusd.sh +++ b/prometheusd.sh @@ -7,7 +7,7 @@ pid=/tmp/prometheus.pid case $1 in start) test -f $pid && echo "prometheus-exporter already running" - daemonize -c /tmp -p $pid -l $pid -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) test -f $pid && cat $pid | xargs -r kill