fix variable misnaming

This commit is contained in:
f 2022-07-26 10:57:09 -03:00
parent 299437e2b9
commit ccf348f077

View file

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