From: <ow...@us...> - 2010-05-07 21:20:52
|
Revision: 4557 http://ipcop.svn.sourceforge.net/ipcop/?rev=4557&view=rev Author: owes Date: 2010-05-07 21:20:46 +0000 (Fri, 07 May 2010) Log Message: ----------- Add modular config files for logrotate Added Paths: ----------- ipcop/trunk/config/logrotate/ ipcop/trunk/config/logrotate/logrotate.conf.FLASH ipcop/trunk/config/logrotate/logrotate.conf.HDD ipcop/trunk/config/logrotate/logrotate.d/ ipcop/trunk/config/logrotate/logrotate.d/apache2 ipcop/trunk/config/logrotate/logrotate.d/rsyslog ipcop/trunk/config/logrotate/logrotate.d/squid ipcop/trunk/config/logrotate/logrotate.d/ulogd Added: ipcop/trunk/config/logrotate/logrotate.conf.FLASH =================================================================== --- ipcop/trunk/config/logrotate/logrotate.conf.FLASH (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.conf.FLASH 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,35 @@ +# logrotate cfg for FLASH installations +# + +# rotate log files daily +daily + +# keep 2 weeks worth of backlogs +rotate 14 + +# create new (empty) log files after rotating old ones +create + +# Maximum logfile size of 4MB +size 4M + +# uncomment this if you want your log files compressed +compress + +# packages drop log rotation information into this directory +include /etc/logrotate.d + +# no packages own wtmp, or btmp -- we'll rotate them here +/var/log/wtmp { + missingok + weekly + create 0664 root utmp + rotate 1 +} + +/var/log/btmp { + missingok + weekly + create 0600 root root + rotate 1 +} Added: ipcop/trunk/config/logrotate/logrotate.conf.HDD =================================================================== --- ipcop/trunk/config/logrotate/logrotate.conf.HDD (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.conf.HDD 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,32 @@ +# logrotate cfg for harddisk installations +# + +# rotate log files weekly +weekly + +# keep 52 weeks worth of backlogs +rotate 52 + +# create new (empty) log files after rotating old ones +create + +# uncomment this if you want your log files compressed +compress + +# packages drop log rotation information into this directory +include /etc/logrotate.d + +# no packages own wtmp, or btmp -- we'll rotate them here +/var/log/wtmp { + missingok + weekly + create 0664 root utmp + rotate 1 +} + +/var/log/btmp { + missingok + weekly + create 0600 root root + rotate 1 +} Added: ipcop/trunk/config/logrotate/logrotate.d/apache2 =================================================================== --- ipcop/trunk/config/logrotate/logrotate.d/apache2 (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.d/apache2 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,12 @@ +# logrotate fragment for apache2 +# + +/var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log { + missingok + weekly + delaycompress + sharedscripts + postrotate + /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true + endscript +} Added: ipcop/trunk/config/logrotate/logrotate.d/rsyslog =================================================================== --- ipcop/trunk/config/logrotate/logrotate.d/rsyslog (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.d/rsyslog 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,10 @@ +# logrotate fragment for (r)syslog +# + +/var/log/messages { + create 664 root syslogd + ifempty + postrotate + /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true + endscript +} Added: ipcop/trunk/config/logrotate/logrotate.d/squid =================================================================== --- ipcop/trunk/config/logrotate/logrotate.d/squid (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.d/squid 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,13 @@ +# logrotate fragment for squid +# + +/var/log/squid/*.log { + missingok + daily + nocreate + delaycompress + sharedscripts + postrotate + test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate + endscript +} Added: ipcop/trunk/config/logrotate/logrotate.d/ulogd =================================================================== --- ipcop/trunk/config/logrotate/logrotate.d/ulogd (rev 0) +++ ipcop/trunk/config/logrotate/logrotate.d/ulogd 2010-05-07 21:20:46 UTC (rev 4557) @@ -0,0 +1,9 @@ +# logrotate fragment for ulogd +# + +/var/log/ulogd.log { + missingok + postrotate + /usr/bin/killall -HUP ulogd 2> /dev/null || true + endscript +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |