From 1746d7f11a91f49dd2ed702a29eec226e565599f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 17 Oct 2026 08:19:46 -0700 Subject: [PATCH] system, adjust finish script to sleep on success too, just for a shorter time. --- facts/general/system.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/facts/general/system.yml b/facts/general/system.yml index 6778338..bf4c7fd 100644 --- a/facts/general/system.yml +++ b/facts/general/system.yml @@ -21,10 +21,14 @@ # $1 is the exit code, $2 is the exit status byte (signal number if killed) echo "FINISH: Service returned with exit code: $1 and status: $2" - sleep=30 + sleep_long=30 + sleep_short=5 if [[ "$1" != 0 ]]; then - echo "FINISH: Sleeping for $sleep seconds due to error..." - sleep $sleep + echo "FINISH: Sleeping for $sleep_long seconds due to error..." + sleep $sleep_long + else + echo "FINISH: Sleeping for $sleep_short seconds." + sleep $sleep_short fi - name: General | Facts | System | Global 02