Recent install is not rotating logs.  "rc-update" shows cronie and
"sysklogd" at "default" level.  Directory /etc/logrotate.d contains...

elog-save-summary  hibernate-script  openrc  rsyncd

  I assume that I have to create configs for various files in /var/log
Reading "man logrotate", and adapting for sysklogd and bzip2 I get the
following for /var/log/messages.  I intend to rotate whenever the file
hits 3 megabytes.  Does it look OK?  Do I have to set up /etc/crontab?

######################################

compress
compresscmd /bin/bzip2
compressoptions -9
nomail

/var/log/messages {
    rotate 5
    size 3M
    postrotate
        /usr/bin/killall -HUP sysklogd
    endscript
}

######################################

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to