Skip to content

Commit

Permalink
re-insert trap
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio committed Dec 6, 2024
1 parent 4d7d176 commit 788680b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/charmed-spark/bin/sparkd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ function log_forwarding {
fi
}

function finish {
if [ $? -ne 0 ]
then
kill -1 1
sleep 1
fi
}
trap finish EXIT

FLAVOUR=$1

echo "Running script with ${FLAVOUR} flavour"
Expand Down

0 comments on commit 788680b

Please sign in to comment.