Project

General

Profile

« Previous | Next » 

Revision 9132ae35

Added by Ermal LUÇI over 14 years ago

Do not spam logs uselessly on bootup and sleep a bit before starting apinger.

View differences:

etc/inc/gwlb.inc
232 232

  
233 233
	/* start a new apinger process */
234 234
	@unlink("{$g['tmp_path']}/apinger.status");
235
	sleep(1);
235 236
	mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
236 237

  
237 238
	return 0;
......
406 407
			$tiers_count = count($tiers);
407 408
			if($tiers_count == 0) {
408 409
				/* Oh dear, we have no members! Engage Plan B */
409
				$msg = "Gateways status could not be determined, considering all as up/active.";
410
				log_error($msg);
411
				notify_via_growl($msg);
410
				if (!$g['booting']) {
411
					$msg = "Gateways status could not be determined, considering all as up/active.";
412
					log_error($msg);
413
					notify_via_growl($msg);
414
				}
412 415
				$tiers = $backupplan;
413 416
			}
414 417
			/* sort the tiers array by the tier key */

Also available in: Unified diff