Merge pull request #8226 from nupplaphil/bug/wait_for_conn
Fix wait-for-connection script comment
This commit is contained in:
commit
480d936685
|
@ -1,11 +1,14 @@
|
||||||
#!/usr/bin/php
|
#!/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
|
<?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}]
|
||||||
|
*/
|
||||||
|
|
||||||
$timeout = 60;
|
$timeout = 60;
|
||||||
switch ($argc) {
|
switch ($argc) {
|
||||||
case 4:
|
case 4:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user