summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-01 16:00:10 -0400
committerjim-p <jimp@pfsense.org>2012-05-01 16:00:10 -0400
commite0c45357b22b2290ad3d3a27714f43b682b6bf52 (patch)
treece15002808aad5b954e3455751a3a89dd8ddfd3a /etc
parent3a1e12cfd9049100c0c97603ce049d067ea78e1b (diff)
downloadpfsense-e0c45357b22b2290ad3d3a27714f43b682b6bf52.zip
pfsense-e0c45357b22b2290ad3d3a27714f43b682b6bf52.tar.gz
Move routing (radvd, routed, ospf, bgp) to its own log since these daemons can be really spammy at times.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc8
-rwxr-xr-xetc/rc2
2 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index cfcb20c..a1517ed 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -543,7 +543,7 @@ function system_syslogd_start() {
}
if (isset($syslogcfg)) {
- $separatelogfacilities = array('ntpd','ntpdate','racoon','openvpn','pptps','poes','l2tps','relayd','hostapd','dnsmasq','unbound','dhcpd','dhcrelay','apinger');
+ $separatelogfacilities = array('ntp','ntpd','ntpdate','racoon','openvpn','pptps','poes','l2tps','relayd','hostapd','dnsmasq','unbound','dhcpd','dhcrelay','apinger','radvd','routed','olsrd','zebra','ospfd','bgpd');
if($config['installedpackages']['package']) {
foreach($config['installedpackages']['package'] as $package) {
if($package['logging']) {
@@ -560,7 +560,11 @@ function system_syslogd_start() {
printf(gettext("Error: cannot open syslog.conf in system_syslogd_start().%s"), "\n");
return 1;
}
- $syslogconf .= "!ntpdate,ntp,ntpd\n";
+ $syslogconf .= "!radvd,routed,olsrd,zebra,ospfd,bgpd\n";
+ if (!isset($syslogcfg['disablelocallogging']))
+ $syslogconf .= "*.* {$log_directive}{$g['varlog_path']}/routing.log\n";
+
+ $syslogconf .= "!ntp,ntpd,ntpdate\n";
if (!isset($syslogcfg['disablelocallogging']))
$syslogconf .= "*.* {$log_directive}{$g['varlog_path']}/ntpd.log\n";
diff --git a/etc/rc b/etc/rc
index b2d2544..a8c6ca5 100755
--- a/etc/rc
+++ b/etc/rc
@@ -262,7 +262,7 @@ fi
echo -n "."
DISABLESYSLOGCLOG=`/usr/bin/grep -c disablesyslogclog /cf/conf/config.xml`
ENABLEFIFOLOG=`/usr/bin/grep -c usefifolog /cf/conf/config.xml`
-LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppp relayd wireless lighttpd ntpd gateways resolver"
+LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppp relayd wireless lighttpd ntpd gateways resolver routing"
for logfile in $LOG_FILES; do
if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then
/usr/bin/touch /var/log/$logfile.log
OpenPOWER on IntegriCloud