From: Joe Acquisto-j. <jo...@j4...> - 2022-01-24 02:28:08
|
. . . More goodliness to report (Every one can relax now) After a bit of fine hand sanding and careful waxing, logrotate seems to work now. (with /etc/logrotate.d/fetchmail below) ---------------------------------------------- /var/log/fetchmail.log { compress dateext maxage 365 rotate 99 size=+1024k notifempty missingok copytruncate create 0600 fool fool postrotate /usr/bin/systemctl restart fetchmail.service > /dev/null endscript } -------------------------------------------------- To test: logrotate -vfd /etc/logrotate.d/fetchmail To do: logrotate -vf /etc/logrotate.d/fetchmail Result: -rw-r--r-- 1 fool fool 74968 Jan 23 21:23 /var/log/fetchmail.log -rw-r--r-- 1 fool fool 872115 Jan 23 21:15 /var/log/fetchmail.log-20220123.gz The names have been changed to protect, well, practically nothing. Thanks again for all the leads and asssitance. joe a |