Hi, OK. As the only feedback I got was from Evan, I changed the SPEC file again, and CentOS/RHEL 8 uses now /etc/logrotate.d/syslog. Here is the summary: * RHEL/CentOS 7: /etc/logrotate.d/syslog is the same as for rsyslog and installed always * Fedora: /etc/logrotate.d/syslog-ng installed only if rsyslog is not installed * RHEL/CentOS 8: /etc/logrotate.d/syslog installed only if rsyslog is not installed Tested on CentOS 7, CentOS 8 and Fedora 31, all seem to work. You can test it from https://syslog-ng.com/blog/rpm-packages-from-syslog-ng-git-head/ Any feedback is appreciated. Note, that the version says 3.28.1, but there was no official release yet. Bye, Peter Czanik (CzP) <peter.czanik@oneidentity.com> Balabit (a OneIdentity company) / syslog-ng upstream https://syslog-ng.com/community/ https://twitter.com/PCzanik ________________________________ From: Peter Czanik (pczanik) <Peter.Czanik@oneidentity.com> Sent: Monday, June 22, 2020 17:17 To: syslog-ng@lists.balabit.hu <syslog-ng@lists.balabit.hu> Subject: Re: [syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages Hi, Fedora already changed to a name-based logrotate, so rsyslog has /etc/logrotate.d/rsyslog. That's how the /etc/logrotate.d/syslog-ng naming was born. Not tested, but I just got the idea: for RHEL 8 keep the syslog-ng logroate file called as /etc/logrotate.d/syslog. It is fugly, another exception in the spec file. But it resolves your problem, and hopefully does not cause much problems for others. Personally I prefer to do the renaming to /etc/logrotate.d/syslog-ng as soon as possible (it will definitely be renamed with RHEL 9 in a few years), but what others think? Bye, Peter Czanik (CzP) <peter.czanik@oneidentity.com> Balabit (a OneIdentity company) / syslog-ng upstream https://syslog-ng.com/community/ https://twitter.com/PCzanik ________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Evan Rempel <erempel@uvic.ca> Sent: Tuesday, June 16, 2020 16:39 To: syslog-ng@lists.balabit.hu <syslog-ng@lists.balabit.hu> Subject: Re: [syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe. The %config(no-replace) does not work for a file that does not yet exist. The difficulty here is that the logrotate file name is changing from /etc/logrotate.d/syslog to /etc/logrotate.d/syslog-ng With the current packaging I would have to "configure" all of my hosts with the new configuration file BEFORE the syslog-ng package gets updated. It's doable, but not desirable. Evan. On 6/16/20 7:31 AM, Fabien Wernli wrote:
On Tue, Jun 16, 2020 at 07:29:24AM -0700, Evan Rempel wrote:
This process will remove my custom /etc/logrotate.d/syslog file and create a new default /etc/logrotate.d/syslog-ng IIRC you can configure the specfile to not overwrite config files with a % directive, something like %config(no-replace) or similar
______________________________________________________________________________ Member info: https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=iNnlY5hMR8LTf5H9R1C5SFxs9CNojqszPYFrTemAw4Y%3D&reserved=0 Documentation: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=B7jzlQxBsIyK%2Bw1bBRl%2FE2nPG02YgW%2BSPLieENhnSw4%3D&reserved=0 FAQ: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=dv3nIRUp5tZyaYFIqNRfZiavAoT6dxkSj%2FFs%2FRZk3HQ%3D&reserved=0