]> git.mxchange.org Git - friendica.git/blobdiff - bin/wait-for-connection
Merge pull request #8141 from annando/brief2
[friendica.git] / bin / wait-for-connection
index 67990f9f93bdb0f3e4cdd4842ee8afca8955bba8..eeb9ba980dbc21db688f9f534cff2726e990b0c5 100755 (executable)
@@ -1,4 +1,9 @@
 #!/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}]
 
 <?php
 $timeout = 60;
@@ -37,4 +42,4 @@ do {
        fwrite(STDOUT, '.');
 } while (time() < $stopTime);
 fwrite(STDOUT, "\n");
-exit(1);
\ No newline at end of file
+exit(1);