$OpenBSD: patch-src_bin_keactrl_kea_conf_pre,v 1.1 2017/08/27 11:14:51 sthen Exp $

Index: src/bin/keactrl/kea.conf.pre
--- src/bin/keactrl/kea.conf.pre.orig
+++ src/bin/keactrl/kea.conf.pre
@@ -45,7 +45,7 @@
     // more. For detailed description, see Sections 8.8, 16 and 15.
     "control-socket": {
         "socket-type": "unix",
-        "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
+        "socket-name": "@localstatedir@/run/kea/kea-dhcp4-ctrl.sock"
     },
 
     // Use Memfile lease database backend to store leases in a CSV file.
@@ -57,7 +57,8 @@
     "lease-database": {
         // Memfile is the simplest and easiest backend to use. It's a in-memory
         // C++ database that stores its state in CSV file.
-        "type": "memfile"
+        "type": "memfile",
+        "lfc-interval": 3600
     },
 
     // Kea allows storing host reservations in a database. If your network is
@@ -427,7 +428,7 @@
     // description, see Sections 9.12, 16 and 15.
     "control-socket": {
         "socket-type": "unix",
-        "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
+        "socket-name": "@localstatedir@/run/kea/kea-dhcp6-ctrl.sock"
     },
 
     // Use Memfile lease database backend to store leases in a CSV file.
@@ -437,7 +438,8 @@
     // There are dedicated examples for each backend. See Section 8.2.2 "Lease
     // Storage" for details.
     "lease-database": {
-        "type": "memfile"
+        "type": "memfile",
+        "lfc-interval": 3600
     },
 
     // Kea allows storing host reservations in a database. If your network is
@@ -753,7 +755,7 @@
                 // - syslog (logs to syslog)
                 // - syslog:name (logs to syslog using specified name)
                 // Any other value is considered a name of a time
-                "output": "@localstatedir@/log/kea-dhcp4.log"
+                "output": "syslog:daemon"
 
                 // This governs whether the log output is flushed to disk after
                 // every write.
@@ -782,7 +784,7 @@
           "name": "kea-dhcp6",
           "output_options": [
               {
-                  "output": "@localstatedir@/log/kea-dhcp6.log"
+                  "output": "syslog:daemon"
               }
           ],
           "severity": "INFO",
@@ -793,7 +795,7 @@
           "name": "kea-dhcp-ddns",
           "output_options": [
               {
-                  "output": "@localstatedir@/log/kea-ddns.log"
+                  "output": "syslog:daemon"
               }
           ],
           "severity": "INFO",
