Bug #6047
closedsyslog-ng does not logrotate
100%
Description
Hello,
I have syslog-ng 1.1.2_1 installed and configured to rotate my logs, but it obviously doesn't.
Checking for logrotate gives:
find / -iname "*logrotate*" /usr/local/etc/logrotate.conf
So I guess logrotate isn't installed anymore with the package.
This bug might be related to #4612, but as the packaging format changed for 2.3, maybe the dependancy is missing.
For now I have enabled the freeBSD repo and installed logrotate via pkg; but then I don't know if I have to add some file to /usr/local/etc/periodic or elsewnere.
Using pfSense 2.3-Beta built on Tue Mar 29 01:50:40 CDT 2016.
Updated by Martin Hansen over 8 years ago
I can word this, logs ain't getting rotated.
Updated by Jim Pingle over 8 years ago
Looks like the dependency on sysutils/logrotate was listed in ports_before on the old 2.2.x package but that didn't get carried over into sysutils/pfSense-pkg-syslog-ng/Makefile so it isn't being built or included. Should be an easy fix.
Updated by Renato Botelho over 8 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Please try 1.1.2_3, I pushed a fix
Updated by Kill Bill almost 8 years ago
Well, this still does not work properly at least with bzip2, because:
error: /usr/local/etc/logrotate.conf:7 compression program bzip2 is not an executable file error: found error in /var/syslog-ng/default.log , skipping
Updated by Renato Botelho almost 8 years ago
- Status changed from Feedback to Resolved