Hey Tom,<div><br></div><div>I don&#39;t have a RHEL init script handy, but you may want to take a look inside it to see if /etc/init.d/syslog-ng for 3.0.4 creates a link /var/run/syslogd.pid file to syslog-ng&#39;s pid upon starting. This way, the default logrotate does a HUP on syslog(-ng)&#39;s PID with no change necessary to your logrotate configuration. This is of course assuming your /etc/logrotate.d/syslog configuration does a HUP on /var/run/syslogd.pid (which looks to be the default for CentOS 5.4). If it&#39;s calling an init script or service reload, you may want to symlink /etc/init.d/syslog to /etc/init.d/syslog-ng, or you could just do as you originally planned and generate an /etc/logrotate.d/syslog-ng file.</div>
<div><br></div><div>To anyone else reading this thread who is using ubuntu 8.04 (and probably other debian releases), logrotate still exists, but log rotation for files such as /var/log/syslog is executed via Cron. Have a look at /etc/cron.daily/sysklogd and you will see a shell script that runs the syslogd-listfiles binary in order to get a list of files that it rotates in that daily cron job. As such, if you&#39;re running ubuntu you may have to generate your own logrotate.d/files after your upgrade to syslog-ng (I could be wrong on this though, as I am using my own packaging). Something like this should work:</div>
<div><br></div><div>#cat /etc/logrotate.d/syslog-ng</div><div><br></div><div>/var/log/syslog</div>{<br>weekly<br>missingok<br>compress<br>create 600 root root<br>rotate 8<br>sharedscripts<br>postrotate<br>if [ -f /var/run/syslog-ng.pid ]; then \<br>
kill -HUP `cat /var/run/syslog-ng.pid`; \<br>fi;<br>endscript<br>}<br><div><br><div class="gmail_quote">On Mon, Feb 15, 2010 at 3:51 PM, Tom Simons <span dir="ltr">&lt;<a href="mailto:tom.simons@gmail.com">tom.simons@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">We&#39;re replacing sysklogd on our RHEL4 &amp; 5 servers with syslog-ng-premium-edition 3.0.4-1.  <span><br><br>Has anyone configured logrotate to work with syslog-ng?  Can we just build /etc/logrotate.d/syslog-ng from  </span><span>/etc/logrotate.d/syslog?</span>
<br>
______________________________________________________________________<br>
This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit <a href="http://www.messagelabs.com/email" target="_blank">http://www.messagelabs.com/email</a> <br>
______________________________________________________________________<br>
<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lance Laursen<br>Demonware Systems Engineer<br>
</div>