influxdb: Add start script used by systemd service

The influxdb systemd service tries to run the script
influxd-systemd-start.sh, but it was not copied to the correct location
by the influxdb recipe. This led to a failure during start-up:

[FAILED] Failed to start InfluxDB i…ributed, time series database.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Thomas Gessler 2023-11-07 23:59:55 +00:00 committed by Khem Raj
parent 458fd00233
commit 90bc2a94f2

View File

@ -58,11 +58,15 @@ do_install:append() {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ] ; then
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${S}/src/${GO_IMPORT}/scripts/influxdb.service ${D}${systemd_system_unitdir}/influxdb.service
install -d ${D}${libdir}/influxdb/scripts
install -m 0755 ${S}/src/${GO_IMPORT}/scripts/influxd-systemd-start.sh ${D}${libdir}/influxdb/scripts/influxd-systemd-start.sh
fi
# TODO chown
}
FILES:${PN} += "${libdir}/influxdb/scripts/influxd-systemd-start.sh"
INITSCRIPT_PACKAGES = "${PN}"
INITSCRIPT_NAME = "influxdb"
INITSCRIPT_PARAMS = "defaults"