Project

General

Profile

Actions

Bug #6047

closed

syslog-ng does not logrotate

Added by Orsiris de Jong over 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
syslog-ng
Target version:
-
Start date:
03/31/2016
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

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.

Actions #1

Updated by Jim Thompson over 8 years ago

  • Assignee set to Renato Botelho
Actions #2

Updated by Martin Hansen over 8 years ago

I can word this, logs ain't getting rotated.

Actions #3

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.

Actions #4

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

Actions #5

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

Fix at https://github.com/pfsense/FreeBSD-ports/pull/218

Actions #6

Updated by Kill Bill almost 8 years ago

All working now.

Actions #7

Updated by Renato Botelho almost 8 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF