summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-24 21:45:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-24 21:45:31 +0000
commit8e661932c8744a770946c999366831da8fc15968 (patch)
treee0a4b91eb3c3a4ded119dc5033cd5e887853c32c /etc
parentf005f8aef84dc0951ecf0e9ebc3e83b5a3a085cb (diff)
downloadpfsense-8e661932c8744a770946c999366831da8fc15968.zip
pfsense-8e661932c8744a770946c999366831da8fc15968.tar.gz
Log carp state changes to system logging. Why we haven't done this prior
is a oversight on my part.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index c01ff43..b1182b4 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -495,6 +495,7 @@ function interfaces_carp_configure() {
} else {
mwexec("/sbin/sysctl net.inet.carp.preempt=1");
}
+ mwexec("/sbin/sysctl net.inet.carp.log=2"); // tell syslog about state changes
$carp_sync_int = convert_friendly_interface_to_real_interface_name($pfsyncinterface);
if($g['booting']) {
/* install rules to alllow pfsync to sync up during boot
OpenPOWER on IntegriCloud