Subject: dhcpd log rotation
To: None <netbsd-users@netbsd.org>
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
List: netbsd-users
Date: 04/05/2006 18:57:56
I have a dhcpd server on NetBSD 3.0.
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.
What are my options?
Regards,
Thierry.