Project

General

Profile

Actions

Bug #4612

closed

syslog-ng creates logrotate cron job, but logrotate doesn't exist

Added by Joshua Ruehlig about 9 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
syslog-ng
Target version:
-
Start date:
04/14/2015
Due date:
% Done:

0%

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

Description

I noticed my log files weren't rotating.

The syslog-ng package creates a cronjob "/usr/bin/nice -n20 /usr/local/sbin/logrotate /usr/local/etc/logrotate.conf" and the logrotate.conf configuration file. But, logrotate doesn't exist on the system.
I think this should be done with newsyslog.conf instead.

Actions #1

Updated by Joshua Ruehlig about 9 years ago

Here's what I ended up with after further investigation.

  • this package expects logrotate to be installed, but it is not installed
  • a workaround is to 'pkg install logrotate'
  • alternatively this package could try to use newsyslog, which is installed in freebsd, but not with pfsense

My suggestion is to make sysutils/logrotate a dependency for this PBI so log rotation works without any hacking.

Actions #2

Updated by Kill Bill over 8 years ago

Joshua Ruehlig wrote:

But, logrotate doesn't exist on the system.

logrotate actually does exist. Just elsewhere.

https://github.com/pfsense/pfsense-packages/pull/910

Actions #3

Updated by Joshua Ruehlig over 8 years ago

I have v1.0.6 of the packageinstalled and /usr/pbi/syslog-ng-amd64/sbin/logrotate doesn't exist for me. Will this be added for version 1.0.7 or is something messed up with my system?

Thanks for addressing this!

Actions #4

Updated by Kill Bill over 8 years ago

It's /usr/pbi/syslog-ng-amd64/local/sbin/logrotate

Actions #5

Updated by Joshua Ruehlig over 8 years ago

My mistake, exists for me. Ok, looks like this bug will be squashed as soon as v1.0.7 is out!

Actions #6

Updated by Renato Botelho over 8 years ago

  • Status changed from New to Feedback

Pull request has been merged

Actions #7

Updated by Chris Buechler about 8 years ago

  • Category set to syslog-ng
  • Status changed from Feedback to Resolved
  • Affected Version deleted (2.2.1)
Actions

Also available in: Atom PDF