dhcpd.log file not rolling
jim
glass4545 at gmail.com
Tue Jan 11 13:36:21 UTC 2011
Greetings,
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! :-)
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.
Creates the new file dhcpd.log but dhcp sometimes is still putting the log
messages in the wrong/old file.
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.
The messages and named files are rolling OK, the dhcpd.log file seems hit or
miss.
Anyone have an idea what I might have wrong, timing, need change to
/etc/logrotate.d/dhcpd ?
~dhcpd files in var/log
# ls -lt /var/log/dhcp*
-rw-r--r--. 1 root root 32466007 Jan 11 08:34 /var/log/dhcpd.log-20110110
-rw-r--r--. 1 root root 0 Jan 11 04:01 /var/log/dhcpd.log
-rw-r--r--. 1 root root 29469760 Jan 9 04:01 /var/log/dhcpd.log-20110108
-rw-r--r--. 1 root root 0 Jan 8 04:01 /var/log/dhcpd.log-20110109
-rw-r--r--. 1 root root 7139 Jan 7 04:50 /var/log/dhcpd.log-20110107
-rw-r--r--. 1 root root 1865869 Jan 6 14:59 /var/log/dhcpd.log-20110106
In the file /etc/dhcp/dhcpd.conf have
*log-facility local1;*
In the file /etc/rsyslog.conf have
XX;others;*local1.none* /var/log/messages
*local1.** /var/log/dhcpd.log
In the file /etc/anacrontab
START_HOURS_RANGE=4-5
1 0 cron.daily nice run-parts /etc/cron.daily
In the directory /etc/cron.daily
logrotate
makewhatis.cron
mlocate.cron
prelink
readahead.cron
tmpwatch
In the file /etc/logrotate.d/dhcpd have
/var/log/dhcpd.log {
daily
rotate 60
missingok
create 0644 root root
postrotate
/sbin/service dhcpd restart > /dev/null
endscript
}
thanks!
jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110111/39e19395/attachment.html>
More information about the dhcp-users
mailing list