fix variable misnaming
This commit is contained in:
parent
299437e2b9
commit
ccf348f077
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue