diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2020-09-18 02:25:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-21 23:54:39 +0100 |
commit | 8d28f2ecc8f0209892c79d5d8ba5e78ebee0d7b2 (patch) | |
tree | 2e247c81325a50bbc9e794306506e54492b6b68b /meta/recipes-connectivity/kea/kea_1.7.10.bb | |
parent | 0c741099cc04e08e7ec2e4265173851eee1dfa6a (diff) | |
download | poky-8d28f2ecc8f0209892c79d5d8ba5e78ebee0d7b2.tar.gz |
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]
(From OE-Core rev: 0183ad73526ddcff094c7f8c159c03d22ca760a3)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/kea/kea_1.7.10.bb')
-rw-r--r-- | meta/recipes-connectivity/kea/kea_1.7.10.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/kea/kea_1.7.10.bb b/meta/recipes-connectivity/kea/kea_1.7.10.bb index e2560b2399..d3c8834b46 100644 --- a/meta/recipes-connectivity/kea/kea_1.7.10.bb +++ b/meta/recipes-connectivity/kea/kea_1.7.10.bb | |||
@@ -9,6 +9,7 @@ DEPENDS = "boost log4cplus openssl" | |||
9 | 9 | ||
10 | SRC_URI = "\ | 10 | SRC_URI = "\ |
11 | http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \ | 11 | http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \ |
12 | file://0001-keactrl.in-create-var-lib-kea-and-var-run-kea-folder.patch \ | ||
12 | file://kea-dhcp4.service \ | 13 | file://kea-dhcp4.service \ |
13 | file://kea-dhcp6.service \ | 14 | file://kea-dhcp6.service \ |
14 | file://kea-dhcp-ddns.service \ | 15 | file://kea-dhcp-ddns.service \ |
@@ -46,7 +47,7 @@ do_install_append() { | |||
46 | install -m 0644 ${WORKDIR}/kea-dhcp*service ${D}${systemd_system_unitdir} | 47 | install -m 0644 ${WORKDIR}/kea-dhcp*service ${D}${systemd_system_unitdir} |
47 | sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 48 | sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
48 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | 49 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
49 | ${D}${systemd_system_unitdir}/kea-dhcp*service | 50 | ${D}${systemd_system_unitdir}/kea-dhcp*service ${D}${sbindir}/keactrl |
50 | } | 51 | } |
51 | 52 | ||
52 | do_install_append() { | 53 | do_install_append() { |