Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by tarax (registered user) on Sat, 2008-03-22 13:01.

Hi,

 First, thank you for this nice tutorial.

AFAIC, I prefer adding "delaycompress" option to logrotate stanza so that I always have yesterday logs readable as is and, so, don't have to gunzip and gzip back *.log.0 files.

BTW, rather than modifying /etc/logrotate.conf, I suggest to create a dedicated file in /etc/logrotate.d/, like /etc/logrotate.d/mail with the following content

/var/log/mail.log {
    missingok
    daily
    rotate 7
    create
    compress
    delaycompress
    start 0
}

Finally, instead of editing the crontab, I prefer creating a symlink to the script, in this case, in /etc/cron.daily; or if you want a custom schedule, create an /etc/cron.d/pflogsumm file.

 Thank you again

Bests

Tarax 

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.