X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fwait-for-connection;h=b6c03a6705df9ef52f386e25fd2ff651f18fdd47;hb=6f84b13e2a7167fd6678b1302647e62512df0f8d;hp=eeb9ba980dbc21db688f9f534cff2726e990b0c5;hpb=cd46a5650ab0eaf4e804b748ccff346dee9245a9;p=friendica.git diff --git a/bin/wait-for-connection b/bin/wait-for-connection index eeb9ba980d..b6c03a6705 100755 --- a/bin/wait-for-connection +++ b/bin/wait-for-connection @@ -1,11 +1,29 @@ #!/usr/bin/php -# -# This script tries to connect to a database for a given interval -# Useful in case of installation e.g. to wait for the database to not generate unnecessary errors -# -# Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}] - . + * + * This script tries to connect to a database for a given interval + * Useful in case of installation e.g. to wait for the database to not generate unnecessary errors + * + * Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}] + */ + $timeout = 60; switch ($argc) { case 4: