/etc/logrotate.d/system contains string rotating /var/log/proftpd.log file. But there is no rotating of /var/log/xferlog. I guess putting /etc/logrotate.d/proftpd with following content: /var/log/xferlog { # ftpd doesn't handle SIGHUP properly nocompress } during installation of proftpd will be handy. Reproducible: Always
Thanks for your report. I merged app-admin/logrotate-3.8.0 to reproduce this issue but there is no /etc/logrotate.d/system file. Do you know which package did install this file? And please post the section of the /var/log/proftpd.log rotation from this file here.
Hmm. Checked on my systems. gawriloff@falcon-cl2 ~ $ equery belongs /etc/logrotate.d/system * Searching for /etc/logrotate.d/system ... gawriloff@falcon-cl2 ~ $ ls -l /etc/logrotate.d/system -rw-r--r-- 1 root root 377 Май 16 2009 /etc/logrotate.d/system /var/log/access.log /var/log/audit.log /var/log/auth.log /var/log/cron.log /var/log/daemon.log /var/log/emerge-fetch.log /var/log/emerge.log grsec.log /var/log/kern.log /var/log/mail.log /var/log/net-snmpd.log /var/log/proftpd.log /var/log/user.log { missingok sharedscripts postrotate /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true endscript } It seems that this file is from days of old. You may close ticket, sorry for bother.
> It seems that this file is from days of old. > You may close ticket, sorry for bother. No problem. But I will not close this bug report. I will handle it as a feature enhancement request to add a logrotate configuration for the default ProFTPD log files /var/log/proftpd.log and /var/log/xferlog.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c988107bbcf5b157450850bfeb54ba1ec6911d commit b1c988107bbcf5b157450850bfeb54ba1ec6911d Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-06-15 07:52:45 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-06-15 09:08:32 +0000 net-ftp/proftpd: add logrotate configuration, bug #345677 While at it: - updated to EAPI=7 - made USE=doc code unconditional to always install docs - made USE=xinetd unconditional to always install xinetd snippet Reported-by: Oleg Gawriloff Closes: https://bugs.gentoo.org/345677 Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> net-ftp/proftpd/files/proftpd.logrotate | 11 ++ net-ftp/proftpd/proftpd-1.3.6-r4.ebuild | 274 ++++++++++++++++++++++++++++++++ 2 files changed, 285 insertions(+)