Greetings,<br>
<br>
Not a dhcp problem but thought I would ask here. Most everything I know about dhcp I've learned from this list, man and The DHCP Handbook in that order so thanks! :-)<br><br>
Upgraded to Red Hat Enterprise 6 and DHCP Server 4.1.1-P1 last week and having a problem with the rolling of the dhcp.log file.<br>
<br>
<br>
Creates the new file dhcpd.log but dhcp sometimes is still putting the log messages in the wrong/old file.<br>
Creates the new file at 4:00 AM like on the old system, but the log messages are still going in to the file dhcpd.log-20110110 for couple of days.<br>
The messages and named files are rolling OK, the dhcpd.log file seems hit or miss.<br>
Anyone have an idea what I might have wrong, timing, need change to /etc/logrotate.d/dhcpd ?<br>
<br>
~dhcpd files in var/log<br>
# ls -lt /var/log/dhcp*<br>-rw-r--r--. 1 root root 32466007 Jan 11 08:34 /var/log/dhcpd.log-20110110<br>-rw-r--r--. 1 root root 0 Jan 11 04:01 /var/log/dhcpd.log<br>-rw-r--r--. 1 root root 29469760 Jan 9 04:01 /var/log/dhcpd.log-20110108<br>
-rw-r--r--. 1 root root 0 Jan 8 04:01 /var/log/dhcpd.log-20110109<br>-rw-r--r--. 1 root root 7139 Jan 7 04:50 /var/log/dhcpd.log-20110107<br>-rw-r--r--. 1 root root 1865869 Jan 6 14:59 /var/log/dhcpd.log-20110106<br>
<br>
<br>
In the file /etc/dhcp/dhcpd.conf have <br>
<b>log-facility local1;</b><br>
<br>
In the file /etc/rsyslog.conf have<br>
XX;others;<b>local1.none</b> /var/log/messages<br>
<b>local1.*</b> /var/log/dhcpd.log<br>
<br>
In the file /etc/anacrontab <br>
START_HOURS_RANGE=4-5<br>
1 0 cron.daily nice run-parts /etc/cron.daily<br>
<br>
In the directory /etc/cron.daily<br>
logrotate<br>
makewhatis.cron<br>
mlocate.cron<br>
prelink<br>
readahead.cron<br>
tmpwatch<br>
<br>
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>
thanks!<br>jim<br>
<br>