Project

General

Profile

« Previous | Next » 

Revision 1ee701fb

Added by Ermal LUÇI about 14 years ago

Enable the pfsync checking unconditionally

View differences:

etc/inc/interfaces.inc
1682 1682
	} else
1683 1683
		$cmdchain->add("Bring up pfsync0", "/sbin/ifconfig pfsync0 syncdev lo0 up", false);						
1684 1684

  
1685
	if ($g['booting']) {
1686
		sleep(1);
1685
	sleep(1);
1687 1686

  
1688
		/* XXX: Handle an issue with pfsync(4) and carp(4). In a cluster carp will come up before pfsync(4) has updated and so will cause issuese
1689
		 * for exiting sessions.
1690
		 */
1691
		$i = 0;
1692
		while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) {
1693
			$i++;
1694
			sleep(1);
1695
		}
1687
	/* XXX: Handle an issue with pfsync(4) and carp(4). In a cluster carp will come up before pfsync(4) has updated and so will cause issuese
1688
	 * for exiting sessions.
1689
	 */
1690
	$i = 0;
1691
	while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) {
1692
		$i++;
1693
		sleep(1);
1696 1694
	}
1697 1695

  
1698 1696
	if($config['virtualip']['vip'])

Also available in: Unified diff