Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FC5 Postrotate Script Error???

Status
Not open for further replies.

JohnPtrs

MIS
Jun 13, 2006
91
US
Has anyone run across this error yet? I'm just looking to get a head start on my troubleshooting, if you have any ideas I'd appreciate it thanks!

Server= Fedora Core 5 Updated

error: error running postrotate script for /var/log/xferlog

John
 
Check the logrotate configuration files in /etc/logrotate.d for the one that refers to xferlog. In that file it will have a portion of script after the postrotate keyword, that's what you need to look at.

Annihilannic.
 
Ok, it is in the /etc/logrotate.d/proftpd config file... the file contains the script below... I no longer even use proftpd, should I just get rid of this file and the xferlogs since they're no longer in use??

/var/log/xferlog {
compress
missingok
postrotate
test -f /var/lock/subsys/proftpd && /usr/bin/killall -HUP proftpd
endscript
}

/var/log/proftpd/*.log {
compress
missingok
postrotate
test -f /var/lock/subsys/proftpd && /usr/bin/killall -HUP proftpd
endscript
}

 
Well, if you remove the proftpd package it should theoretically take the logrotate configuration file with it. But you can safely move/remove it individually if you prefer.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top