From 3f9267b2fb9957df3b8290545d1fdbd971dad473 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 17 Jun 2025 13:23:02 +0200 Subject: [PATCH] enable service --- recipes/node-exporter_1.9.1.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/node-exporter_1.9.1.bb b/recipes/node-exporter_1.9.1.bb index e8fa133..7d390c6 100644 --- a/recipes/node-exporter_1.9.1.bb +++ b/recipes/node-exporter_1.9.1.bb @@ -23,4 +23,7 @@ FILES:${PN} += "\ do_install() { install -Dm755 bin/linux_arm64/node_exporter ${D}${bindir}/node_exporter install -Dm644 ${S}/${GO_INSTALL}/examples/systemd/node_exporter.service ${D}${systemd_unitdir}/system/node_exporter.service + + install -d ${D}${systemd_unitdir}/system/multi-user.target.wants + ln -sf ../node_exporter.service ${D}${systemd_unitdir}/system/multi-user.target.wants/node_exporter.service } -- GitLab