diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-01 19:07:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-01 19:07:53 +0000 |
commit | a7fcb83217a485bef7e8dc6869ea5508f17dca2c (patch) | |
tree | eca8c92f4f50383d5ea5ac25ceb5ec4ff84cd7c6 /etc/rc | |
parent | be22fb76618c16c38cd7e8c355f1fe1d8d78685c (diff) | |
download | pfsense-a7fcb83217a485bef7e8dc6869ea5508f17dca2c.zip pfsense-a7fcb83217a485bef7e8dc6869ea5508f17dca2c.tar.gz |
Generate small clog files when running under ram disk
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -81,11 +81,19 @@ rm -rf /var/run/* rm -rf /tmp/* # generate circular logfiles -clog -i -s 262144 /var/log/system.log -clog -i -s 262144 /var/log/filter.log -clog -i -s 32768 /var/log/dhcpd.log -clog -i -s 32768 /var/log/vpn.log -clog -i -s 32768 /var/log/portalauth.log +if [ ! "$PLATFORM" = "cdrom" ]; then + clog -i -s 1000 /var/log/system.log + clog -i -s 1000 /var/log/filter.log + clog -i -s 1000 /var/log/dhcpd.log + clog -i -s 1000 /var/log/vpn.log + clog -i -s 1000 /var/log/portalauth.log +else + clog -i -s 262144 /var/log/system.log + clog -i -s 262144 /var/log/filter.log + clog -i -s 32768 /var/log/dhcpd.log + clog -i -s 32768 /var/log/vpn.log + clog -i -s 32768 /var/log/portalauth.log +fi chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/vpn.log /var/log/portalauth.log /sbin/adjkerntz -i |