]> code.ossystems Code Review - openembedded-core.git/commit
kea: create /var/lib/kea and /var/run/kea folder
authorMingli Yu <mingli.yu@windriver.com>
Fri, 18 Sep 2020 09:25:10 +0000 (02:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2020 22:53:35 +0000 (23:53 +0100)
commit0183ad73526ddcff094c7f8c159c03d22ca760a3
tree537eaf4d94a64ffc49281f9c92cec8e079542f14
parent08f8580b1ad2a478538f6974e79cb79e726b6efa
kea: create /var/lib/kea and /var/run/kea folder

Create /var/lib/kea and /var/run/kea folder if they don't
exist to fix below error:
 # keactrl start
 INFO/keactrl: Starting /usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
 INFO/keactrl: Starting /usr/sbin/kea-dhcp6 -c /etc/kea/kea-dhcp6.conf
 INFO/keactrl: Starting /usr/sbin/kea-ctrl-agent -c /etc/kea/kea-ctrl-agent.conf
 Unable to use interprocess sync lockfile (No such file or directory): /var/run/kea/logger_lockfile
 Service failed: Launch failed: Unable to open PID file '/var/run/kea/kea-ctrl-agent.kea-ctrl-agent.pid' for write
 [snip]
 ERROR [kea-dhcp4.dhcp4/615.140641792751488] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp4.conf, reason: Unable to open database: unable to open '/var/lib/kea/kea-leases4.csv'
 [snip]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/kea/files/0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch [new file with mode: 0644]
meta/recipes-connectivity/kea/kea_1.7.10.bb