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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue