Hello,

I noticed that the isc-dhcp-server dhcpd won't start because of the
following error:
===
Can't open lease database /var/db/dhcpd.leases: No such file or directory --
===

This is handled by rc_pre() in the rc.d script for the base dhcpd
(/etc/rc.d/dhcpd).

We should probably do the same thing in the port. Diff below.

-- 
Patrik Lundin

Index: isc_dhcpd.rc
===================================================================
RCS file: /cvs/ports/net/isc-dhcp/pkg/isc_dhcpd.rc,v
retrieving revision 1.1
diff -u -p -u -r1.1 isc_dhcpd.rc
--- isc_dhcpd.rc        12 Oct 2014 20:10:16 -0000      1.1
+++ isc_dhcpd.rc        28 May 2015 18:16:47 -0000
@@ -9,4 +9,8 @@ daemon_flags="-user _isc-dhcp -group _is
 
 rc_reload=NO
 
+rc_pre() {
+       touch /var/db/dhcpd.leases
+}
+
 rc_cmd $1

Reply via email to