Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 115320

Summary: net-ftp/vsftpd needs an entry in logrotate.d
Product: Gentoo Linux Reporter: rhumbliner <mailbin>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.