From 5559b6cc60f6deada6658b3d7ea804883c97ae60 Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sat, 3 Sep 2022 13:25:56 +0200 Subject: [PATCH] Prepare cleanup handler impl. --- sqm_lagthrottle.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5