Skip to content
Snippets Groups Projects

shorter sleep times

Merged Hahn Axel (hahn) requested to merge remove-sleep into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -36,6 +36,7 @@
# 2022-05-20 <axel.hahn@iml.unibe.ch> update _wait_4_free_slot and data in debug.log
# 2023-02-01 <axel.hahn@unibe.ch> skip function _fixKeyfile with former workaround
# 2023-05-08 <axel.hahn@unibe.ch> fix: "key and cert do not match"
# 2024-03-21 <axel.hahn@unibe.ch> shorter sleep times
# ======================================================================
@@ -123,8 +124,8 @@ function _certMustNotExist(){
then
echo "ERROR: cert ${CM_fqdn} was added already."
# exit 1
echo "Press Ctrl+C to abort within the next 10 sec..."
sleep 10
echo "Press Ctrl+C to abort within the next 3 sec..."
sleep 3
fi
}
@@ -369,7 +370,7 @@ function _wait_for_free_slot(){
_iProcesses=$( echo "$_sProcesses" | wc -l )
_iFirstPID=$( echo "$_sProcesses" | head -1 | awk '{ print $2}' )
_debuglog "zzz ... waiting in _wait_for_free_slot ... $_iFirstPID is first ... my pos is $_iPos of $_iProcesses"
sleep 10
sleep $((3 + RANDOM % 3));
fi
done
_debuglog "end _wait_for_free_slot"
Loading