diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-03-15 20:19:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-03-15 20:19:19 +0000 |
commit | dbdbd597d266190ebdecac40b9c4e18fbf38217e (patch) | |
tree | 848f71ec4500d2ae0de8b163cfdd0906e66dec5f /etc/rc | |
parent | 4210bc05ecdd9e63f46976d70aaaa02ade595d91 (diff) | |
download | pfsense-dbdbd597d266190ebdecac40b9c4e18fbf38217e.zip pfsense-dbdbd597d266190ebdecac40b9c4e18fbf38217e.tar.gz |
/var/log is a ram disk. Do not worry about CDROM checks.
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 54 |
1 files changed, 26 insertions, 28 deletions
@@ -156,34 +156,32 @@ rm -rf /var/run/* echo -n "." DISABLESYSLOGCLOG=`cat /cf/conf/config.xml | grep disablesyslogclog | wc -l | awk '{ print $1 }'` -if [ ! "$PLATFORM" = "cdrom" ]; then - if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then - touch /var/log/system.log - touch /var/log/filter.log - touch /var/log/dhcpd.log - touch /var/log/vpn.log - touch /var/log/openvpn.log - touch /var/log/portalauth.log - touch /var/log/ipsec.log - touch /var/log/slbd.log - touch /var/log/lighttpd.log - touch /var/log/ntpd.log - else - # generate circular logfiles - clog -i -s 512144 /var/log/system.log - clog -i -s 512144 /var/log/filter.log - clog -i -s 65535 /var/log/dhcpd.log - clog -i -s 65535 /var/log/vpn.log - clog -i -s 65535 /var/log/openvpn.log - clog -i -s 65535 /var/log/portalauth.log - clog -i -s 65535 /var/log/ipsec.log - clog -i -s 65535 /var/log/slbd.log - clog -i -s 65535 /var/log/lighttpd.log - clog -i -s 65535 /var/log/ntpd.log - fi - # change permissions on newly created clog files. - chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /var/log/slbd.log -fi +if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then + touch /var/log/system.log + touch /var/log/filter.log + touch /var/log/dhcpd.log + touch /var/log/vpn.log + touch /var/log/openvpn.log + touch /var/log/portalauth.log + touch /var/log/ipsec.log + touch /var/log/slbd.log + touch /var/log/lighttpd.log + touch /var/log/ntpd.log +else + # generate circular logfiles + clog -i -s 512144 /var/log/system.log + clog -i -s 512144 /var/log/filter.log + clog -i -s 65535 /var/log/dhcpd.log + clog -i -s 65535 /var/log/vpn.log + clog -i -s 65535 /var/log/openvpn.log + clog -i -s 65535 /var/log/portalauth.log + clog -i -s 65535 /var/log/ipsec.log + clog -i -s 65535 /var/log/slbd.log + clog -i -s 65535 /var/log/lighttpd.log + clog -i -s 65535 /var/log/ntpd.log +fi +# change permissions on newly created clog files. +chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /var/log/slbd.log echo -n "." DEVFS=`mount | grep devfs | wc -l | cut -d" " -f8` |