error13
(usa Ubuntu)
Enviado em 17/12/2018 - 16:04h
amarildosertorio escreveu:
Existe contexto para rotate dos logs do Apache?
# grep httpd /etc/logrotate.conf; grep -r httpd /etc/logrotate.d/
[root@server~]# grep httpd /etc/logrotate.conf
[root@server ~]# grep -r httpd /etc/logrotate.d/
/etc/logrotate.d/httpd:/var/log/httpd/*log {
/etc/logrotate.d/httpd: /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
[root@server ~]#
[root@server ~]# cat /etc/logrotate.d/httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
endscript
}
[root@server ~]#
Só lembrando que meu caminho é diferente para salvar os logs o caminho é:
/log_httpd/httpd/