Skip to content
Snippets Groups Projects
Commit 1bc2eb23 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

shorter sleep times

parent b61c97cd
No related branches found
No related tags found
1 merge request!22shorter sleep times
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment