This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.1 has been updated
via 0b45ae9ec0dff85dcda2dc53b2b779ecfe4dbac0 (commit)
from 2f38361a388a6f51e93402fee7b76f18c2e4c986 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=0b45ae9ec0dff85dcda2dc53b2b779ecfe4dbac0
commit 0b45ae9ec0dff85dcda2dc53b2b779ecfe4dbac0
Author: Roland Mas <[email protected]>
Date: Wed Mar 4 08:49:07 2020 +0100
systasksd: loop until DB is available on startup
diff --git a/src/bin/systasksd b/src/bin/systasksd
index 7a9e084..1656b18 100755
--- a/src/bin/systasksd
+++ b/src/bin/systasksd
@@ -25,10 +25,14 @@
//putenv('FUSIONFORGE_NO_DB=true');
require (dirname(__FILE__).'/../common/include/env.inc.php');
-try {
- require_once $gfcommon.'include/pre.php';
-} catch (DBException $e) {
- print "Cannot connect to DB: $e\nWaiting for DB...\n";
+while (true) {
+ try {
+ require_once $gfcommon.'include/pre.php';
+ break;
+ } catch (DBException $e) {
+ print "Cannot connect to DB: $e\nWaiting for DB...\n";
+ sleep (5)
+ }
}
require_once $gfcommon.'include/cron_utils.php';
-----------------------------------------------------------------------
Summary of changes:
src/bin/systasksd | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits