diff options
author | jim-p <jimp@pfsense.org> | 2015-12-17 12:08:12 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-12-17 12:09:04 -0500 |
commit | 41df62c1b6d32245442b59505e065370cd052b59 (patch) | |
tree | a838597db9f64af35e318dba58a0a0cf07e70022 /src/etc/rc | |
parent | 1d60756968841c76c43e843fb05107635e541726 (diff) | |
download | pfsense-41df62c1b6d32245442b59505e065370cd052b59.zip pfsense-41df62c1b6d32245442b59505e065370cd052b59.tar.gz |
Nuke fifolog support. It was never used or fully implemented, no GUI option, and didn't end up working out.
It buffered writes too long, users could never see the most current log data.
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-x | src/etc/rc | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -308,7 +308,6 @@ trap "echo 'Reboot interrupted'; exit 1" 3 echo -n "." DISABLESYSLOGCLOG=$(/usr/local/sbin/read_xml_tag.sh boolean system/disablesyslogclog) -ENABLEFIFOLOG=$(/usr/local/sbin/read_xml_tag.sh boolean system/usefifolog) LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppp relayd wireless lighttpd ntpd gateways resolver routing" DEFAULT_LOG_FILE_SIZE=$(/usr/local/sbin/read_xml_tag.sh string syslog/logfilesize) @@ -319,17 +318,12 @@ for logfile in $LOG_FILES; do /usr/bin/touch /var/log/$logfile.log else if [ ! -f /var/log/$logfile.log ]; then - if [ "$ENABLEFIFOLOG" = "true" ]; then - # generate fifolog files - /usr/sbin/fifolog_create -s ${DEFAULT_LOG_FILE_SIZE} /var/log/$logfile.log - else - /usr/local/sbin/clog -i -s ${DEFAULT_LOG_FILE_SIZE} /var/log/$logfile.log - fi + /usr/local/sbin/clog -i -s ${DEFAULT_LOG_FILE_SIZE} /var/log/$logfile.log fi fi done -# change permissions on newly created fifolog files. +# change permissions on newly created log files. /bin/chmod 0600 /var/log/*.log echo -n "." |