El Mon, 20 May 2013 11:37:17 +0200, maykel escribió: > El 2013-05-16 16:00, Camaleón escribió:
(...) >> Parece que es un bug: >> >> rsyslog stops working after logrotate until restarted >> https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/940030 >> > Como siempre, gracias por contestar Camaleón. Lo he cambiado, y lo he > dejado así: (...) > Me gustaría forzarlo para que rote y comprobar que rsyslog se levanta > bien y sigue logueando...Me devuelve esto la ejecución de logrodate -d > -f apache-rsyslog: > > reading config file /etc/logrotate.d/apache2-rsyslog reading config info > for /var/log/remote/*.log > > > Handling 1 logs > > rotating pattern: /var/log/remote/*.log > forced from command line (no old logs will be kept) > empty log files are not rotated, old logs are removed considering log > /var/log/remote/access.log > log needs rotating (...) > rotating log /var/log/remote/access.log, log->rotateCount is 0 dateext > suffix '-20130520' > glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' renaming > /var/log/remote/access.log.1 to /var/log/remote/access.log.2 > (rotatecount 1, logstart 1, i 1), > renaming /var/log/remote/access.log.0 to /var/log/remote/access.log.1 > (rotatecount 1, logstart 1, i 0), (...) > (rotatecount 1, logstart 1, i 0), renaming /var/log/remote/access.log to > /var/log/remote/access.log.1 disposeName will be > /var/log/remote/access.log.1 creating new /var/log/remote/access.log (...) > running postrotate script > running script (multiple) with arg /var/log/remote/*.log : " > /sbin/restart rsyslog >/dev/null 2>&1 || true > " > removing old log /var/log/remote/access.log.1 removing old log (...) > Intento forzarlo con la opción de size 100k, y el fichero access.log > tiene 120k, debería de rotar... Quizá se me pase algo pero parece que el "access.log" lo rota bien y después de terminar con el resto de archivos, ejecuta el script ¿no? :-? Saludos, -- Camaleón -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

