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