hi,
i saw that /var got filled, because /var/log contained about 1.7GB of files. i compresses the older log files (secure.[1-4], messages.[1-4] and [xferlog.2-5]), and set the cron job that rotates them, to compress them in the future when rotating (this is found in /etc/logrotate.d/syslog, added a 'compress' directive for the secure and the messages log files). note that xferlog does not get automatically rotated, and that it's not possible to automatically compress it, since many processes write to the same xferlog file, and when you rotate it, all currently active ftp sessions stil try to write to it. if it was compressed in the middle, no idea what'd happen. the other log files 9secure and messages are only kept open by syslogd, so when you rotate them and HUP syslogd, it closes them and re-opens the new log files. for this reason, i didn't yet compress xferlog.1 - its still open by many ftpd processes. -- guy "For world domination - press 1, or dial 0, and please hold, for the creator." -- nob o. dy ---------------------------------------------------------------------------- To unsubscribe, send a message to [EMAIL PROTECTED] Archives available at http://www.mail-archive.com/[email protected]/
