storage-info: adapted install of config and systemd service files

those files reside now in the repository itself, thus the recipe
needed to be adapted

BugzID: 75350
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-11-24 15:59:21 +01:00
parent 842e337481
commit 4856b5a3d8
3 changed files with 2 additions and 23 deletions

View File

@ -5,10 +5,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=81438338854bd7a09cb97215f36db46b"
SRC_URI = "git://gitlab.com/netmodule/tools/storage-info.git;protocol=ssh;user=git;branch=develop"
SRCREV = "${AUTOREV}"
SRC_URI_append = " \
file://storage-info.conf \
file://storage-info.service \
"
PV = "0.0.1+git${SRCPV}"
@ -35,8 +31,8 @@ do_install() {
install -d ${D}${bindir}
install -m 755 ${B}/rls/target/${BPN} ${D}${bindir}
install -d ${D}${sysconfdir}/storage
install -m 644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/storage/
install -m 644 ${S}/config/${BPN}.conf ${D}${sysconfdir}/storage/
install -d ${D}${systemd_system_unitdir}
install -m 644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}
install -m 644 ${S}/systemd/${BPN}.service ${D}${systemd_system_unitdir}
}

View File

@ -1,6 +0,0 @@
# Default settings for storage-info
# for details run storage-info --help
INTERVAL="-i 3600000"
TARGET_FILE="-f /run/storage/storage0.config"
LOGGER_CONFIG="--loglevel=6,evtloop.5,info-collector.6,info-writer.6"

View File

@ -1,11 +0,0 @@
[Unit]
Description=Storage Information daemon
[Service]
Type=forking
EnvironmentFile=-/etc/default/storage-info.conf
ExecStart=/usr/bin/storage-info $INTERVAL $TARGET_FILE -d -p /run/storage-info.pid $LOGGER_CONFIG
PIDFile=/run/storage-info.pid
[Install]
WantedBy=multi-user.target