Bug #4612
closedsyslog-ng creates logrotate cron job, but logrotate doesn't exist
0%
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.
Updated by Joshua Ruehlig about 10 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.
Updated by Kill Bill almost 10 years ago
Joshua Ruehlig wrote:
But, logrotate doesn't exist on the system.
logrotate actually does exist. Just elsewhere.
Updated by Joshua Ruehlig almost 10 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!
Updated by Kill Bill almost 10 years ago
It's /usr/pbi/syslog-ng-amd64/local/sbin/logrotate
Updated by Joshua Ruehlig almost 10 years ago
My mistake, exists for me. Ok, looks like this bug will be squashed as soon as v1.0.7 is out!
Updated by Renato Botelho almost 10 years ago
- Status changed from New to Feedback
Pull request has been merged
Updated by Chris Buechler over 9 years ago
- Category set to syslog-ng
- Status changed from Feedback to Resolved
- Affected Version deleted (
2.2.1)