Skip to content

Commit 8d05170

Browse files
redirect the log to /opt/logs/meminsight.log
1 parent 5bdff82 commit 8d05170

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

recipes-devtools/meminsight/meminsight_git.bb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ S = "${WORKDIR}/git"
2929

3030
PACKAGE_ARCH = "${MIDDLEWARE_ARCH}"
3131

32-
inherit autotools systemd
32+
inherit autotools syslog-ng-config-gen systemd
3333

3434
# CFLAGS_append_broadband = ' -DDEVICE_IDENTIFIER=\\"erouter0\\" -DDEFAULT_OUT_DIR=\\"/nvram/meminsight\\"'
3535

@@ -39,6 +39,14 @@ PACKAGECONFIG[cjson] = "--enable-cjson,--disable-cjson"
3939
EXTRA_OECONF += "${@bb.utils.contains('PACKAGECONFIG', 'cjson', '--enable-cjson', '--disable-cjson', d)}"
4040
RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cjson', 'cjson', '', d)}"
4141

42+
SYSLOG-NG_FILTER = "meminsight"
43+
44+
SYSLOG-NG_SERVICE_meminsight = "meminsight-runner.service"
45+
SYSLOG-NG_SERVICE_meminsight += " meminsight-upload.service"
46+
47+
SYSLOG-NG_DESTINATION_meminsight = "meminsight.log"
48+
SYSLOG-NG_LOGRATE_meminsight = "high"
49+
4250
do_install() {
4351
install -d ${D}${bindir}
4452
install -m 0755 ${B}/meminsight ${D}${bindir}/meminsight

0 commit comments

Comments
 (0)