With the config deployment, which was released at our last customer LMX today. There was configured a general logrotate for known xres logs. Here the configuration file: /var/log/xres/jt/infx/hotel/*.log /var/log/xres/jt/infx/hotel/*.txt /var/log/xres/jt/hotel/*.log /var/log/xres/jt/hotel/*.txt /var/www/xres_jt/*/log/*.log /var/www/xres_jt/*/log/*.txt { rotate 10 copytruncate daily compress delaycompress missingok nomail notifempty su root root } operation: - the logrotate routine will be started at about 3am by /etc/cron.daily/logrotate configured options: - [rotate 10] after 10 rotates older ones will be deleted - [copytruncate] log file will be copied and truncated - [daily] daily rotation - [compress] compress rotations - [delaycompress] last rotation will not be compressed - [missingok] it's ok if a logfile is missing - [nomail] no email notification - [notifempty] empty logfiles will not be rotated - [su root root] permission stuff If there are some questions or suggestions, please contact me. -- -- Sören Pestner - Entwickler - TraSo GmbH Nonnenstraße 42 D-04229 Leipzig telefon: +49 341 355 740 - 49 email: s.pestner@traso.de Geschäftsführer: Haiko Gerdes Handelsregister: Amtsgericht Leipzig (HRB 21850)
participants (1)
-
Soeren Pestner