diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-09-25 23:09:30 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-09-25 23:09:30 -0400 |
commit | f5d7fe7c5b9587341c2ea27bec9e09bba84b23c8 (patch) | |
tree | e80e4649b1445a4dd732e64dc5eff49ab13af37e /etc/inc | |
parent | 19ee38b4c955b0ab5702bd9fd76f1e547708bac8 (diff) | |
download | pfsense-f5d7fe7c5b9587341c2ea27bec9e09bba84b23c8.zip pfsense-f5d7fe7c5b9587341c2ea27bec9e09bba84b23c8.tar.gz |
fix Everything remote syslog option
Resolves #91
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index a19f0ed..b98889d 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -337,6 +337,14 @@ function system_syslogd_start() { printf("Error: cannot open syslog.conf in system_syslogd_start().\n"); return 1; } + + if (isset($syslogcfg['logall'])) { + $syslogconf .= <<<EOD +*.* @{$syslogcfg['remoteserver']} + +EOD; + } + $syslogconf .= "!ntpdate,!ntpd\n"; if (!isset($syslogcfg['disablelocallogging'])) { $syslogconf .= <<<EOD @@ -435,12 +443,6 @@ auth.info;authpriv.info;daemon.info @{$syslogcfg['remoteserver']} EOD; } - if (isset($syslogcfg['logall'])) { - $syslogconf .= <<<EOD -*.* @{$syslogcfg['remoteserver']} - -EOD; - } fwrite($fd, $syslogconf); fclose($fd); @@ -1280,4 +1282,4 @@ function system_enable_arp_wrong_if() { mwexec("/sbin/sysctl -n net.link.ether.inet.log_arp_movements=1"); } -?> +?>
\ No newline at end of file |