Current File : //etc/logrotate.d/keyhelp |
##############################################################################
# KeyHelp logs
##############################################################################
/var/log/keyhelp/cronjob/*.log
/var/log/keyhelp/backup/*.log
/var/log/keyhelp/application/*.log
/var/log/keyhelp/php-error.log
{
size 500k
rotate 5
nocreate
missingok
nomail
}
##############################################################################
# Apache logs
##############################################################################
/home/users/*/logs/*/access.log
{
weekly
rotate 4
create
ifempty
missingok
compress
delaycompress
nomail
sharedscripts
prerotate
# --wait-until-ready, because the regular daily mainenance interval may already be running at 00:00:00
/usr/bin/php /home/keyhelp/www/keyhelp/cronjob/mastercronjob.php --force="statistic" --wait-until-ready --statistic-awstats-update-only > /dev/null
endscript
postrotate
/etc/init.d/apache2 reload > /dev/null
php /home/keyhelp/www/keyhelp/bin/anonymize_ips_after_rotation.php
endscript
}
/home/users/*/logs/*/error.log
{
weekly
rotate 4
create
ifempty
missingok
compress
delaycompress
nomail
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null
php /home/keyhelp/www/keyhelp/bin/anonymize_ips_after_rotation.php
endscript
}
/var/log/apache2/keyhelp/*.log
{
weekly
rotate 4
create
ifempty
missingok
compress
delaycompress
nomail
sharedscripts
create 640 root adm
postrotate
/etc/init.d/apache2 reload > /dev/null
php /home/keyhelp/www/keyhelp/bin/anonymize_ips_after_rotation.php
endscript
}
##############################################################################
# Additional PHP interpreter logs
##############################################################################
/opt/keyhelp/php/*/var/log/php-fpm.log
{
weekly
rotate 2
create
ifempty
missingok
compress
delaycompress
nomail
sharedscripts
postrotate
for service in /etc/init.d/keyhelp-*-fpm; do
if [ -x "$service" ] && "$service" status >/dev/null 2>&1; then
"$service" reload
fi
done
endscript
}