[Mapbender-commits] r10058 - in trunk/mapbender: conf tools

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 19 00:52:33 PST 2019


Author: armin11
Date: 2019-02-19 00:52:32 -0800 (Tue, 19 Feb 2019)
New Revision: 10058

Modified:
   trunk/mapbender/conf/mapbender.conf-dist
   trunk/mapbender/tools/mod_monitorCapabilities_main.php
Log:
New possibility to define waitstate between the invocation of the single monitoring instances

Modified: trunk/mapbender/conf/mapbender.conf-dist
===================================================================
--- trunk/mapbender/conf/mapbender.conf-dist	2019-02-18 11:49:44 UTC (rev 10057)
+++ trunk/mapbender/conf/mapbender.conf-dist	2019-02-19 08:52:32 UTC (rev 10058)
@@ -187,6 +187,11 @@
 #define("CAP_MONITORING_TIMEOUT", "30");
 
 # --------------------------------------------
+# Define wait time between start of the single capabilities monitoring scripts. This may be usefull, if many services are on the same server as the monitoring installation. The time defined is given in microseconds - 2000000 is 2 seconds!
+# --------------------------------------------
+#define("CAP_MONITORING_WAITSTATE", "200000");
+
+# --------------------------------------------
 # RSS
 # Mapbender > 2.7 generates a GeoRSS file which shows the changes in the mapbender service database. The
 # GeoRSS file get entries when wms are uploaded, updated or deleted. The RSS file can be used to show the positions

Modified: trunk/mapbender/tools/mod_monitorCapabilities_main.php
===================================================================
--- trunk/mapbender/tools/mod_monitorCapabilities_main.php	2019-02-18 11:49:44 UTC (rev 10057)
+++ trunk/mapbender/tools/mod_monitorCapabilities_main.php	2019-02-19 08:52:32 UTC (rev 10058)
@@ -344,6 +344,9 @@
 		// start of the monitoring processes on shell 
 		// (maybe problematic for windows os)
 		//$e = new mb_notice("mod_monitorCapabilities_main.php: php call: ".$exec);
+		if (defined("CAP_MONITORING_WAITSTATE") && CAP_MONITORING_WAITSTATE !== "") {
+			usleep((integer)CAP_MONITORING_WAITSTATE);
+		}
 		switch ($serviceType) {
 			case "WMS":
 				$exec = PHP_PATH . "php " . dirname(__FILE__) . "/mod_monitorCapabilities_write.php " . 



More information about the Mapbender_commits mailing list