Revision 1be1a67a
Added by Pi Ba over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1816 | 1816 |
/* 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 issues |
1817 | 1817 |
* for existing sessions. |
1818 | 1818 |
*/ |
1819 |
$i = 0; |
|
1820 |
while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) { |
|
1821 |
$i++; |
|
1822 |
sleep(1); |
|
1819 |
if ($config['hasync']['pfsyncenabled'] === "on"){ |
|
1820 |
echo "waiting for pfsync..."; |
|
1821 |
$i = 0; |
|
1822 |
while (intval(trim(`/sbin/ifconfig pfsync0 | /usr/bin/grep 'syncok: 0' | /usr/bin/grep -v grep | /usr/bin/wc -l`)) == 0 && $i < 30) { |
|
1823 |
$i++; |
|
1824 |
sleep(1); |
|
1825 |
} |
|
1826 |
echo "pfsync done in $i seconds.\n"; |
|
1827 |
echo "Configuring CARP settings finalize..."; |
|
1823 | 1828 |
} |
1824 | 1829 |
|
1825 | 1830 |
if($config['virtualip']['vip']) |
Also available in: Unified diff
while booting do not let carp wait for pfsync synchronization if pfsync is not enabled