diff options
author | Ermal <eri@pfsense.org> | 2011-07-11 21:32:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-11 21:32:49 +0000 |
commit | 1ee701fbb3fb491b55f848158f2c83bcec038e88 (patch) | |
tree | 9af1ad1539270647ada90722d0caebcd4daa2355 /etc/inc/interfaces.inc | |
parent | 639223f366411ff4d2f1e2282d530333b6813907 (diff) | |
download | pfsense-1ee701fbb3fb491b55f848158f2c83bcec038e88.zip pfsense-1ee701fbb3fb491b55f848158f2c83bcec038e88.tar.gz |
Enable the pfsync checking unconditionally
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 0bbd429..e29cacb 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1682,17 +1682,15 @@ function interfaces_carp_setup() { } else $cmdchain->add("Bring up pfsync0", "/sbin/ifconfig pfsync0 syncdev lo0 up", false); - if ($g['booting']) { - sleep(1); + sleep(1); - /* 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 - * for exiting sessions. - */ - $i = 0; - while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) { - $i++; - sleep(1); - } + /* 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 + * for exiting sessions. + */ + $i = 0; + while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) { + $i++; + sleep(1); } if($config['virtualip']['vip']) |