Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115320 - net-ftp/vsftpd needs an entry in logrotate.d
Summary: net-ftp/vsftpd needs an entry in logrotate.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-12 09:03 UTC by rhumbliner
Modified: 2006-01-09 23:20 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 rhumbliner 2005-12-12 09:03:42 UTC
it appears that vsftpd has no option in it's configuration file to limit the
size of it's log file.  therefore it's ebuild should probably create the file
/etc/logrotate.d/vsftpd with something like this:

/var/log/vsftpd.log {
  missingok
  notifempty
  sharedscripts
  postrotate
  /etc/init.d/vsftpd reload > /dev/null 2>&1 || true
  endscript
}


Reproducible: Always
Steps to Reproduce:
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-12 09:54:16 UTC
Here's my setup for logrotate.d/syslog-ng  
  
/var/log/messages /var/log/debug /var/log*log {  
   sharedscripts  
   postrotate  
      /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true  
   endscript  
}  
  
That also works with vsftpds log file and is not vsftpd specific.  
  
I don't see any reason why vsftpd should install a file in logrotate.d myself.  
Re-open if you disagree. 
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-01-09 23:20:02 UTC
.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-01-09 23:20:35 UTC
Added a logrotate script in vsftpd-2.0.4 handled by a logrotate USE flag.