-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: proftpd
Version: 1.3.0-19
Severity: important
I put the severity to important as the logfile is rotatet and proftpd is
not signaled to write to the new one so logmessages gets lost.
To the problem. Logrotation is done in /etc/cron.monthly/proftpd. But
after the rotation there is no SIGHUP to the daemon (/etc/init.d/proftpd
restart) so the daemon will still write to the deleted logfiles after
rotation.
I suggest one of the two solutions. (I prefer the second one):
1. Put a line "/etc/init.d/proftpd restart > /dev/null" (or
"/etc/init.d/proftpd reload > /dev/null", should be ok too) as last
line to the cron script or
2. Put the logrotation stuff from the cron script to
/etc/logrotate.d/proftpd.
The second can be somethink like:
/var/log/proftpd/xferlog /var/log/proftpd/proftpd.log
/var/log/proftpd/controls.log {
monthly
missingok
rotate 12
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
([ -e /usr/sbin/ftpstats ] && cd /var/log/proftpd &&
/usr/sbin/ftpstats -a -r -l 2 -d 2>/dev/null >/var/log/proftpd/xferreport)
endscript
postrotate
if [ -f /var/run/proftpd.pid ]; then
/etc/init.d/proftpd reload > /dev/null
fi
endscript
}
- -- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (60,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.4.32
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to
de_DE)
- --
Klaus Ethgen http://www.ethgen.de/
pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <[EMAIL PROTECTED]>
Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRrBmw5+OKpjRpO3lAQJvUQf/VzudGylpto++QIu8bXrhnTL71HXNKv+/
0wXYo46M4z4nYK1QKC1i6hItDMcCjhuzmVPmFG8urU015jkCAK5u0rd9TIKTJWn2
83DUu26r5xpzv4qTKWh2AAr90Z3w63MCDY9HmvhzGmfIQDCvos5qYg6dzSv8uAFs
d35UYxiQcIx2Vm6LWFKnGeuhqQx1PQnb7qHIuO0XZTeAJUKmKZaB78/+IWukZ/mI
keWY21WX7AYKrOlLrvrj4k6v6WSmfu/gGL9Adbk3wdOvVARYIrg8Qu1RvZBGwTLG
uXLZMJaJKpH5xHFWrC35P9dcoC7hrYyF/59UvTxPrUwE1JXXt3cpMg==
=ZiZW
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]