Peter and Gene,<br><br>Thanks for the replies, your input has fixed me up. <br>Looking in to syslog-ng<br>The "keeps its file descriptors open" got me to review more and I see I needed to add to /etc/logrotate.d/dhcpd<br>
<br>        /sbin/service rsyslog restart > /dev/null<br><br>This got me going, now rolling the log file as expected.<br><br>thanks!<br><br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 9:16 AM, Peter Rathlev <span dir="ltr"><<a href="mailto:peter@rathlev.dk">peter@rathlev.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, 2011-01-11 at 08:36 -0500, jim wrote:<br>
> Upgraded to Red Hat Enterprise 6 and DHCP Server 4.1.1-P1 last week<br>
> and having a problem with the rolling of the dhcp.log file.<br>
><br>
> Creates the new file dhcpd.log but dhcp sometimes is still putting the<br>
> log messages in the wrong/old file.<br>
> Creates the new file at 4:00 AM like on the old system, but the log<br>
> messages are still going in to the file dhcpd.log-20110110 for couple<br>
> of days.<br>
<br>
</div>Can you see when the currently running dhcpd was started? What is the<br>
path to the running dhcpd executable?<br>
<br>
It seems that the running dhcpd somehow isn't restarted, and it thus<br>
keeps its file descriptors open.<br>
<br>
...<br>
<div class="im">> In the file /etc/logrotate.d/dhcpd have<br>
>  /var/log/dhcpd.log {<br>
>      daily<br>
>      rotate 60<br>
>      missingok<br>
>      create 0644 root root<br>
>      postrotate<br>
>          /sbin/service dhcpd restart > /dev/null<br>
>      endscript<br>
>  }<br>
<br>
</div>I'm not familiar with RHEL 6, but if your 4.1.1-P1 is compiled from<br>
source it's probably placed under /usr/local/sbin/ instead<br>
of /usr/sbin/. And the "service" script might point at /usr/sbin/dhcpd<br>
(look in /etc/init.d/dhcpd).<br>
<br>
Otherwise you could remove the "> /dev/null" from the postrotate script<br>
to maybe see some kind of error.<br>
<font color="#888888"><br>
--<br>
Peter<br>
<br>
<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</font></blockquote></div><br>