Commit 70fa4c0b authored by Matthias Fechner's avatar Matthias Fechner

Wait up to 60 seconds instead of 30 seconds till PIDs should exist.

After the upgrade of puma the daemon option of puma does not exist anymore.
This was fixed with !52404.
This also fixed #299570.

But production environments I manage show that puma now requires about 30-50 seconds to start.
This will give puma enough time to start in an expected time range and not terminate to startup of gitlab.
parent d7046d7b
...@@ -138,8 +138,8 @@ wait_for_pids(){ ...@@ -138,8 +138,8 @@ wait_for_pids(){
i=$((i+1)) i=$((i+1))
if [ $((i%10)) = 0 ]; then if [ $((i%10)) = 0 ]; then
echo -n "." echo -n "."
elif [ $((i)) = 301 ]; then elif [ $((i)) = 601 ]; then
echo "Waited 30s for the processes to write their pids, something probably went wrong." echo "Waited 60s for the processes to write their pids, something probably went wrong."
exit 1; exit 1;
fi fi
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment