Bug #4612
closed
syslog-ng creates logrotate cron job, but logrotate doesn't exist
Added by Joshua Ruehlig over 9 years ago.
Updated almost 9 years ago.
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.
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.
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!
It's /usr/pbi/syslog-ng-amd64/local/sbin/logrotate
My mistake, exists for me. Ok, looks like this bug will be squashed as soon as v1.0.7 is out!
- Status changed from New to Feedback
Pull request has been merged
- Category set to syslog-ng
- Status changed from Feedback to Resolved
- Affected Version deleted (
2.2.1)
Also available in: Atom
PDF