From: Johannes Truschnigg Date: Sat, 3 Sep 2022 11:25:56 +0000 (+0200) Subject: Prepare cleanup handler impl. X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=5559b6cc60f6deada6658b3d7ea804883c97ae60;p=sqm_lagthrottle Prepare cleanup handler impl. --- diff --git a/sqm_lagthrottle.sh b/sqm_lagthrottle.sh index ad274df..8d41030 100755 --- a/sqm_lagthrottle.sh +++ b/sqm_lagthrottle.sh @@ -222,6 +222,7 @@ esac set -u +trap ':' SIGINT SIGTERM fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_PEERS} 2>/dev/null \ | awk \ @@ -238,3 +239,5 @@ fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_P -v FUDGE="${FUDGE_MS}" \ -v PING_PEERS="${PING_PEERS}" \ -f ./__sqm_lagthrottle.awk + +echo 'exiting - cleanup...' >&2