X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fwait-for-connection;h=b6c03a6705df9ef52f386e25fd2ff651f18fdd47;hb=756de11cda548eb84c3d67ed10ba9daa1bcd5fb5;hp=eeb9ba980dbc21db688f9f534cff2726e990b0c5;hpb=36ba7fa79c7c2d4304f3423d84215771e3bb6a9f;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: