Project

General

Profile

« Previous | Next » 

Revision 9a85884b

Added by Ermal LUÇI almost 12 years ago

Force apinger to write the status file before getting gateway status

View differences:

etc/inc/gwlb.inc
266 266
	global $config, $g;
267 267

  
268 268
	$apingerstatus = array();
269
	/* Always get the latest status from apinger */
270
	if (file_exists("{$g['varrun_path']}/apinger.pid"))
271
                sigkillbypid("{$g['varrun_path']}/apinger.pid", "USR1");
269 272
	if (file_exists("{$g['varrun_path']}/apinger.status")) {
270 273
		$apingerstatus = file("{$g['varrun_path']}/apinger.status");
271
	}
274
	} else
275
		$apingerstatus = array();
272 276

  
273 277
	$status = array();
274 278
	foreach($apingerstatus as $line) {

Also available in: Unified diff