...
Code Block |
---|
yum install logrotate cat >/etc/logrotate.d/pcr360_prod <<LOG /var/www/pcr360/prod/logs/*log { missingok notifempty daily minsize 1M rotate 14 delaycompress } /var/www/pcr360/data/logs/prod/*log { missingok notifempty daily minsize 1M rotate 14 delaycompress } /var/www/pcr360/test/logs/*log { missingok notifempty daily minsize 1M rotate 14 delaycompress } /var/www/pcr360/data/logs/test/*log { missingok notifempty daily minsize 1M rotate 14 delaycompress } LOG |
...