See the "copytruncate" option in the logrotate man page: http://linux.die.net/man/8/logrotate
On Wed Dec 10 2014 at 6:25:50 PM Detlef Bracker <brac...@1awww.com> wrote: > Dear, > > more information with logrotate debug. But how new log entries logs in the > log.1 - logs? > > ...... > empty log files are not rotated, old logs are removed > considering log /var/log/mail.info > log does not need rotating > considering log /var/log/mail.warn > log does not need rotating > considering log /var/log/mail.err > log does not need rotating > considering log /var/log/mail.log > log does not need rotating > considering log /var/log/daemon.log > log does not need rotating > considering log /var/log/kern.log > log does not need rotating > considering log /var/log/auth.log > log does not need rotating > considering log /var/log/user.log > log does not need rotating > considering log /var/log/lpr.log > log does not need rotating > considering log /var/log/cron.log > log /var/log/cron.log does not exist -- skipping > considering log /var/log/debug > log does not need rotating > considering log /var/log/messages > log does not need rotating > not running postrotate script, since no logs were rotated > ..... > > > Am 11.12.2014 02:05, schrieb Detlef Bracker: > > Dear, > > I have the same problem on 2 diferent hosts! The logrotate is not working > correct and the logs > are not going in the log-files normal, they go in the log-file with the > number .1 !!! > Expample not logged in auth - but logged in auth.1 > or not logged in syslog - but logged in syslog.1 > > *This is a security risk*, when you check with fail2ban the hosts-files > about hackings via console, > ssh and some-thing on! - and I dont know, that I have this only or others > too! > > uname -a > > Linux pm3-host 2.6.32-31-pve #1 SMP Thu Jul 24 06:44:16 CEST 2014 x86_64 > GNU/Linux > > The logrotate job in cron.daily not working, but I get not an error! The > logrotate stop at the > 23 octobre on 1 host and on the other at the 30. september! > > Have somebody a resolution w/o a reboot? > > Dear > > Detlef > > > _______________________________________________ > pve-devel mailing > listpve-devel@pve.proxmox.comhttp://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel > > > -- > ACHTUNG: Ihr Anfragetext befindet sich unter unserem Absender! > P.S. ePrivacy in Europa - lesen Sie mehr - read more > <http://blog.1awww.com/2012/05/30/achtung-internet-seiten-betreiber-eprivacy-richtlinien-umzusetzen/> > > Mit freundlichen Gruessen > 1awww.com - Internet-Service-Provider > > Detlef Bracker > Velilla, Calle Club s/n, E 18690 Almunecar, Tel.: +34.6 343 232 61 * > EU-VAT-ID: ESX4516542D > > This email and any files transmitted are confidential and intended only or > the person(s) directly addressed. If you are not the intended recipient, > any use, copying, transmission, distribution, or other forms of > dissemination is strictly prohibited. If you have received this email in > error, please notify the sender immediately and permanently delete this > email with any files that may be attached. > > Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, > contiene información de carácter confidencial exclusivamente dirigida a su > destinatario o destinatarios. Queda prohibida su divulgación, copia o > distribución a terceros sin la previa autorización escrita de Detlef > Bracker. En caso de no ser usted la persona a la que fuera dirigido este > mensaje y a pesar de ello está continúa leyéndolo, ponemos en su > conocimiento que está cometiendo un acto ilícito en virtud de la > legislación vigente en la actualidad, por lo que deberá dejarlo de leer > automáticamente. > > Detlef Bracker no es responsable de su integridad, exactitud, o de lo que > acontezca cuando el correo electrónico circula por las infraestructuras de > comunicaciones electrónicas públicas. En el caso de haber recibido este > correo electrónico por error, se ruega notificar inmediatamente esta > circunstancia mediante reenvío a la dirección electrónica del remitente. > > El correo electrónico vía Internet no permite asegurar la confidencialidad > de los mensajes que se transmiten ni su integridad o correcta recepción, > por lo que Detlef Bracker no asume ninguna responsabilidad que pueda > derivarse de este hecho. > > No imprima este correo si no es necesario. Ahorrar papel protege el medio > ambiente. > _______________________________________________ > pve-devel mailing list > pve-devel@pve.proxmox.com > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >
_______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel