Skip to contentSkip to conversation

influxdb: Add start script used by systemd service

PATCH New Thomas Gessler 1 participant 1 message Nov 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-dbs/influxdb/influxdb_1.8.10.bb +4 -0
index 50995c09b..7f8110e4c 100644
@@ -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"
Signature · 1 line
2.34.1