Kea not finding kea-lfc when deployed outside of /usr/local/sbin
name: Kea not finding kea-lfc when deployed outside of /usr/local/sbin
about: Kea service binaries not finding kea-lfc when deployed outside of /usr/local/sbin
Describe the bug kea-dhcp4 (and I presume other binaries) are unable to find kea-lfc when it has been deployed outside of the default /usr/local/sbin
To Reproduce Steps to reproduce the behavior:
- run ./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --localstatedir=/var --libdir=/lib --datarootdir=/usr/share --prefix=/
- make
- make install
- see that kea-lfc has been installed (as desired) into /usr/sbin/kea-lfc
- run kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
- Result is ERROR [kea-dhcp4.dhcp4/16922.4160151616] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp4.conf': Unable to open database: File not found: /usr/local/sbin/kea-lfc
Expected behavior
INFO [kea-dhcp4.dhcpsrv/17302.4160249920] DHCPSRV_MEMFILE_LFC_START starting Lease File Cleanup
INFO [kea-dhcp4.dhcpsrv/17302.4160249920] DHCPSRV_MEMFILE_LFC_EXECUTE executing Lease File Cleanup using: /usr/sbin/kea-lfc -4 -x /var/lib/kea/kea-leases4.csv.2 -i /var/lib/kea/kea-leases4.csv.1 -o /var/lib/kea/kea-leases4.csv.output -f /var/lib/kea/kea-leases4.csv.completed -p /var/lib/kea/kea-leases4.csv.pid -c ignored-path
Environment:
- Kea version: 2.6 compiled from tarball
- OS: Raspbian Bullseye
- Which features were compiled in (in particular which backends)
- If/which hooks where loaded in
Additional Information
config file snippets:
"lease-database": {
"type": "memfile"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 3600,
"hold-reclaimed-time": 172800,
"max-reclaim-leases": 0,
"max-reclaim-time": 0
},
Contacting you Github or email.
Edited by Andrei Pavel