Subject: Re: dhcpd log rotation
To: Thierry Lacoste <th.lacoste@wanadoo.fr>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 04/05/2006 10:15:47
On Wed, 5 Apr 2006, Thierry Lacoste wrote:
> To make it log to /var/log/dhcpd my /etc/syslog.conf contains
>
> !dhcpd
> *.* /var/log/dhcpd
>
> Now I'd like to rotate /var/log/dhcpd so I put the following line
> in /etc/newsyslog.conf
> /var/log/dhcpd root:wheel 600 7 100 * Z /var/run/dhcpd.pid
>
> It doesn't work because kill -HUP `cat /var/run/dhcpd.pid `
> just kills the server and doesn't restart it.
Since you are using "syslog" to do the logging, you do not have to tell
dhcpd that a new log will be opened. You don't need the
"path_to_pid_file".
Jeremy C. Reed
echo ':6DB6E88>?;@69876tAEAC8BB5tA6487><' | tr '4-E' 'wu rofIn.lkigemcal'