Skip to content

Commit

Permalink
clean up lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Aug 4, 2024
1 parent 6563583 commit 474d48f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ if [[ -s $lockfile ]]; then
fi
echo $$ >"$lockfile"

trap 'rm -f $lockfile' INT QUIT TERM EXIT

intervall=${1:-0}
export datadir=${2:-/var/lib/node_exporter}
cd $datadir
Expand Down

0 comments on commit 474d48f

Please sign in to comment.