log to syslog

This commit is contained in:
f 2022-07-26 10:58:19 -03:00
parent ccf348f077
commit 47f66a6060

View file

@ -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