Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345677 - net-ftp/proftpd: add logrotate configuration
Summary: net-ftp/proftpd: add logrotate configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 22:22 UTC by Oleg Gawriloff
Modified: 2019-06-15 09:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Gawriloff 2010-11-15 22:22:57 UTC
/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
Comment 1 Bernd Lommerzheim 2011-08-11 08:51:28 UTC
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.
Comment 2 Oleg Gawriloff 2011-08-15 09:02:52 UTC
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.
Comment 3 Bernd Lommerzheim 2011-09-06 07:20:51 UTC
> 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.
Comment 4 Larry the Git Cow gentoo-dev 2019-06-15 09:08:38 UTC
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(+)