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

Merge branch 'remove-sleep' into 'master'

shorter sleep times

See merge request !22
parents b61c97cd 1bc2eb23
No related branches found
No related tags found
1 merge request!22shorter sleep times
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
# 2022-05-20 <axel.hahn@iml.unibe.ch> update _wait_4_free_slot and data in debug.log # 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-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" # 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(){ ...@@ -123,8 +124,8 @@ function _certMustNotExist(){
then then
echo "ERROR: cert ${CM_fqdn} was added already." echo "ERROR: cert ${CM_fqdn} was added already."
# exit 1 # exit 1
echo "Press Ctrl+C to abort within the next 10 sec..." echo "Press Ctrl+C to abort within the next 3 sec..."
sleep 10 sleep 3
fi fi
} }
...@@ -369,7 +370,7 @@ function _wait_for_free_slot(){ ...@@ -369,7 +370,7 @@ function _wait_for_free_slot(){
_iProcesses=$( echo "$_sProcesses" | wc -l ) _iProcesses=$( echo "$_sProcesses" | wc -l )
_iFirstPID=$( echo "$_sProcesses" | head -1 | awk '{ print $2}' ) _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" _debuglog "zzz ... waiting in _wait_for_free_slot ... $_iFirstPID is first ... my pos is $_iPos of $_iProcesses"
sleep 10 sleep $((3 + RANDOM % 3));
fi fi
done done
_debuglog "end _wait_for_free_slot" _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