<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ul>
<li>RHEL/CentOS 7: /etc/logrotate.d/syslog is the same as for rsyslog and installed always</li><li>Fedora: /etc/logrotate.d/syslog-ng installed only if rsyslog is not installed</li><li>RHEL/CentOS 8: /etc/logrotate.d/syslog installed only if rsyslog is not installed<br>
</li></ul>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Tested on CentOS 7, CentOS 8 and Fedora 31, all seem to work. You can test it from
<a href="https://syslog-ng.com/blog/rpm-packages-from-syslog-ng-git-head/">https://syslog-ng.com/blog/rpm-packages-from-syslog-ng-git-head/</a> Any feedback is appreciated. Note, that the version says 3.28.1, but there was no official release yet.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Bye,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<div>
<div dir="ltr">Peter Czanik (CzP) <peter.czanik@oneidentity.com><br>
Balabit (a OneIdentity company) / syslog-ng upstream<br>
<a href="https://syslog-ng.com/community/" target="_blank">https://syslog-ng.com/<wbr>community/</a><br>
<a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Peter Czanik (pczanik) <Peter.Czanik@oneidentity.com><br>
<b>Sent:</b> Monday, June 22, 2020 17:17<br>
<b>To:</b> syslog-ng@lists.balabit.hu <syslog-ng@lists.balabit.hu><br>
<b>Subject:</b> Re: [syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Bye,<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<div>
<div dir="ltr">Peter Czanik (CzP) <peter.czanik@oneidentity.com><br>
Balabit (a OneIdentity company) / syslog-ng upstream<br>
<a href="https://syslog-ng.com/community/" target="_blank">https://syslog-ng.com/<wbr>community/</a><br>
<a href="https://twitter.com/PCzanik" target="_blank">https://twitter.com/PCzanik</a></div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Evan Rempel <erempel@uvic.ca><br>
<b>Sent:</b> Tuesday, June 16, 2020 16:39<br>
<b>To:</b> syslog-ng@lists.balabit.hu <syslog-ng@lists.balabit.hu><br>
<b>Subject:</b> Re: [syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">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.<br>
<br>
<br>
The %config(no-replace) does not work for a file that does not yet<br>
exist. The difficulty here is that the logrotate file name is changing from<br>
<br>
/etc/logrotate.d/syslog<br>
<br>
to<br>
<br>
/etc/logrotate.d/syslog-ng<br>
<br>
With the current packaging I would have to "configure" all of my hosts<br>
with the new configuration file BEFORE the syslog-ng package gets<br>
updated. It's doable, but not desirable.<br>
<br>
Evan.<br>
<br>
On 6/16/20 7:31 AM, Fabien Wernli wrote:<br>
> On Tue, Jun 16, 2020 at 07:29:24AM -0700, Evan Rempel wrote:<br>
>> This process will remove my custom /etc/logrotate.d/syslog file and create a<br>
>> new default /etc/logrotate.d/syslog-ng<br>
> IIRC you can configure the specfile to not overwrite config files with a %<br>
> directive, something like %config(no-replace) or similar<br>
><br>
______________________________________________________________________________<br>
Member info: <a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=iNnlY5hMR8LTf5H9R1C5SFxs9CNojqszPYFrTemAw4Y%3D&amp;reserved=0">
https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=iNnlY5hMR8LTf5H9R1C5SFxs9CNojqszPYFrTemAw4Y%3D&amp;reserved=0</a><br>
Documentation: <a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=B7jzlQxBsIyK%2Bw1bBRl%2FE2nPG02YgW%2BSPLieENhnSw4%3D&amp;reserved=0">
https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=B7jzlQxBsIyK%2Bw1bBRl%2FE2nPG02YgW%2BSPLieENhnSw4%3D&amp;reserved=0</a><br>
FAQ: <a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=dv3nIRUp5tZyaYFIqNRfZiavAoT6dxkSj%2FFs%2FRZk3HQ%3D&amp;reserved=0">
https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&amp;data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&amp;sdata=dv3nIRUp5tZyaYFIqNRfZiavAoT6dxkSj%2FFs%2FRZk3HQ%3D&amp;reserved=0</a><br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>