Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/conf/logrotate.d/dansguardian
0,0 → 1,13
/var/log/dansguardian/access.log {
create 644 dansguardian dansguardian
rotate 5
dateext
weekly
sharedscripts
prerotate
service dansguardian stop
endscript
postrotate
service dansguardian start
endscript
}
/conf/logrotate.d/syslog
0,0 → 1,15
# WARNING : don't use * wildcard as extension
# (glob in logrotate will try to rotate all files instead of
# only the basenames of the logs, i.e. it will rotate
# already rotated files and recompress them, taking
# exponential time...)
 
/var/log/auth.log /var/log/syslog /var/log/user.log /var/log/secure /var/log/messages /var/log/boot.log /var/log/mail/errors /var/log/mail/info /var/log/mail/warnings /var/log/cron/errors /var/log/cron/info /var/log/cron/warnings /var/log/kernel/errors /var/log/kernel/info /var/log/kernel/warnings /var/log/lpr/errors /var/log/lpr/info /var/log/lpr/warnings /var/log/news/news.err /var/log/news/news.notice /var/log/news/news.crit /var/log/daemons/errors /var/log/daemons/info /var/log/daemons/warnings /var/log/explanations {
sharedscripts
rotate 5
weekly
postrotate
[ -f /var/run/syslog-ng.pid ] && kill -HUP `cat /var/run/syslog-ng.pid` || true
[ -f /var/run/syslogd.pid ] && kill -HUP `cat /var/run/syslogd.pid` || true
endscript
}
/conf/logrotate.d/httpd
0,0 → 1,27
/var/log/httpd/access_log /var/log/httpd/ssl_access_log{
rotate 12
monthly
dateext
missingok
notifempty
compress
prerotate
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1
endscript
postrotate
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1
endscript
}
/var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex /var/log/httpd/error_ /var/log/httpd/ssl_request_log {
rotate 4
monthly
missingok
notifempty
compress
prerotate
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1
endscript
postrotate
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1
endscript
}
/conf/logrotate.d/squid
0,0 → 1,32
/var/log/squid/access.log {
weekly
rotate 52
dateext
copytruncate
compress
notifempty
missingok
}
/var/log/squid/cache.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
 
/var/log/squid/store.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
postrotate
/usr/sbin/squid -k rotate
endscript
}
/conf/logrotate.d/mysqld
0,0 → 1,37
# This logname can be set in /etc/my.cnf
# by setting the variable "err-log"
# in the [safe_mysqld] section as follows:
#
# [safe_mysqld]
# err-log=/var/lib/mysql/mysqld.log
#
# If the root user has a password you have to create a
# /root/.my.cnf configuration file with the following
# content:
#
# [mysqladmin]
# password = <secret>
# user= root
#
# where "<secret>" is the password.
#
# ATTENTION: This /root/.my.cnf should be readable ONLY
# for root !
 
/var/log/mysqld/mysqld.log {
# create 600 mysql mysql
notifempty
daily
rotate 31
dateext
missingok
compress
postrotate
# just if mysqld is really running
if test -x /usr/bin/mysqladmin && \
/usr/bin/mysqladmin ping &>/dev/null
then
/usr/bin/mysqladmin flush-logs
fi
endscript
}
/conf/logrotate.d/ulogd
0,0 → 1,10
/var/log/firewall/firewall.log {
missingok
rotate 52
weekly
dateext
sharedscripts
postrotate
/etc/init.d/ulogd restart
endscript
}
/conf/logrotate.d/radiusd
0,0 → 1,7
/var/log/radius/radacct/*/detail /var/log/radius/*.log /var/log/radius/radutmp /var/log/radius/radwtmp {
monthly
rotate 4
nocreate
missingok
compress
}