Apache log rotation
- Reply: Dale Scott : "Re: Apache log rotation"
- Reply: Morgan_Wesström : "Re: Apache log rotation"
- Reply: Per olof Ljungmark : "Re: Apache log rotation"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Jul 2023 19:07:35 UTC
Ever since I upgraded from FreeBSD 13.1 to 13.2, each week when the logrotate happens for my Apache logs, apache dies. I see this in the log... Jul 16 02:00:00 sites kernel: pid 84639 (httpd), jid 0, uid 0: exited on signal 11 (core dumped) If I use gdb on the core output file, I get no stack... root@sites:~ # gdb /httpd.core (gdb) bt No stack. My suspicion after looking around, is this happens during log rotation since it happens exactly at 2am each Sunday morning. I have my logs listed in newsyslog.conf as this .... /var/log/httpd-access.log 644 14 * $W0D2 JC /var/run/httpd.pid 30 /var/log/httpd-error.log 644 14 * $W0D2 JC /var/run/httpd.pid 30 This has worked for a long time up until the last 4 weeks, ever since I upgraded FreeBSD to 13.2 only from 13.1 and all packages using pkg. Not sure where I got the idea for 30 for the sig num, I see posts now suggesting this should be 1? Appreciate any help to determine what needs changed or how to track down the issue. Are there other ways to rotate apache logs? -- Robert