Hi, can you please prepare a patch for our in-tree packaging scripts as well? thanks. On Tue, Jun 16, 2020 at 2:18 PM Peter Czanik (pczanik) < Peter.Czanik@oneidentity.com> wrote:
Hi,
There were multiple tickets, bug reports about logrotate scripts in syslog-ng RPM packages for Fedora/RHEL.
https://bugzilla.redhat.com/show_bug.cgi?id=1802165 https://github.com/syslog-ng/syslog-ng/issues/1384#issuecomment-644716350
I have now a possible solution available for testing in my git snapshot repo: https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-githead/
- Installs the same logrotate script on RHEL/CentOS 7 as rsyslog - On RHEL/CentOS 8 and Fedora the logrotate script is called syslog-ng and uses systemctl to reload syslog-ng after rotation, just as the rsyslog variant. It is in a separate subpackage, and installed only when rsyslog is not on the system (for reasons check the RH bugzilla ticket: in short it would not be used anyway due to conflicts)
I tested it on Fedora 32 and CentOS 7, both with and without rsyslog on the system. It worked fine for me, but any feedback is appreciated.
If it is tested to work by someone else than me, I'll push the changes both to the official EPEL package and to the syslog-ng github repo.
Bye, CzP
Peter Czanik (CzP) <peter.czanik@oneidentity.com> Balabit (a OneIdentity company) / syslog-ng upstream https://syslog-ng.com/community/ https://twitter.com/PCzanik
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-- Bazsi