* Joe Acquisto-j4
[01-19-22 22:05]: * Joe Acquisto-j4
[01-19-22 18:37]: Looking for a means to setup logrotate for fetchmail on exisitng system.
open suse 15.2 using logrotate with fetchmail
Thanks.
I crafted /etc/logrotate.d/fetchmail using the provided examples:
/var/log/fetchmail { compress dateext maxage 365 rotate 99 size=+1024k notifempty missingok copytruncate create 0600 fetchmail root }
works for me
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...
How to respond to suse lists seems a bit problematic.
In any case, how does one actually run logrotate? Does
if you have enabled it as below, it will run automagically, using the scripts/configurations below /etc/logrotate.d/
There seems to be a logrotate.service but "systemctl status logrotate.service" shows it is dead. "systemctl start logrotate.service" shows success, but "systemctl status logrotate.service" shows it dead since the time running it.. It says "vendor preset: disabled"
I see no change to the logs. But that may be due to not meeting criterion.
you may need to edit /etc/logrotate.conf mine:
# see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4
# create new (empty) log files after rotating old ones create
# use date as a suffix of the rotated file dateext
# uncomment this if you want your log files compressed compress
# comment these to switch compression to use gzip or another # compression scheme compresscmd /usr/bin/xz uncompresscmd /usr/bin/xzdec
# former versions had to have the compressext set accordingly #compressext xz
# RPM packages drop log rotation information into this directory include /etc/logrotate.d
I presume it is OK to change the two instances of fetchmail in the example to fetchmail.log, to match my system?
my /etc/logrotate.conf is empty
I don't know what you are saying here.
My log is named fetchmail.log joe a.