dhcpd stops logging

Tina Siegenthaler tina at zool.unizh.ch
Wed Dec 6 18:49:08 UTC 2006


Am 06.12.2006 um 12:47 schrieb Glenn Satchell:

>
>> To: dhcp-users at isc.org
>> From: Tina Siegenthaler <tina at zool.unizh.ch>
>> Subject: dhcpd stops logging
>> Date: Wed, 6 Dec 2006 12:03:14 +0100
>>
>> Hi list
>>
>> Sometimes, my dhcp server just stops logging, without any reason
>> (well, at least I found no reason). I'm running dhcpd 3.0.4 on Mac OS
>> X (10.4.8). I added this statement to my dhcpd.conf file:
>>
>> log-facility local1;
>>
>> and I added the following line to syslog.conf:
>>
>> local1.*              /var/log/dhcp.log
>>
>> Usually, this works fine, but then, all of a sudden, I find that
>> there are no new log entries made in dhcp.log. I haven't found out
>> whether it is syslogd that stops accepting the log messages, or
>> whether dhcpd stops sending them. If I restart both syslogd and
>> dhcpd, the messages get logged again.
>> This is rather annoying, since we are supposed to archive all leases
>> for the last 6 months, and now I sometimes get gaps of some hours in
>> the log.
>>
>> Any ideas? I was thinking about restarting syslogd and dhcpd every
>> hour with cron or so, but this seems rather brute force...
>
> Next time it stops, if clients are still able to get an address via
> DHCP, try restarting only syslog and see if the messages come back.
> Then try restarting dhcpd if necessary. This is not a common problem,
> so is more likely to be syslogd.
>
> regards,
> -glenn
>

I'll try that, but I think I've already tried it, and it didn't work  
(but this was some months ago, and I don't remember exactly what I  
tried then). My solution for now is to stop syslogd, then restart  
dhcpd, then start syslogd again.

Tina


More information about the dhcp-users mailing list