From: Litao Gao Date: Tue, 12 May 2020 11:47:55 +0000 (-0400) Subject: stx-metal: change to use /bin/systemctl in pmon service X-Git-Tag: bronze-rc0~11^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=62f2cc934d1c6c656d7f3ba261760770dbcc68bc;p=pti%2Frtp.git stx-metal: change to use /bin/systemctl in pmon service pmon refers to /usr/bin/systemctl for process respawning, modify code to use /bin/systemctl instead. Issue-ID: INF-95 Signed-off-by: Litao Gao Change-Id: If5e15314676268839fe57fec53a90b5027a8c4bf --- diff --git a/meta-stx/recipes-core/stx-metal/mtce.inc b/meta-stx/recipes-core/stx-metal/mtce.inc index d1daf7e..9a9fb57 100644 --- a/meta-stx/recipes-core/stx-metal/mtce.inc +++ b/meta-stx/recipes-core/stx-metal/mtce.inc @@ -42,6 +42,8 @@ do_configure_prepend () { } do_compile_prepend () { + # use sed to correct the path of systemctl + sed -i -e 's|${bindir}/systemctl|${base_bindir}/systemctl|' ${S}/mtce/src/pmon/pmonHdlr.cpp cd ${S}/mtce/src/ oe_runmake -e VER=1 VER_MJR=1 INCLUDES=" -I. -I../alarm -I../heartbeat -I../maintenance \ -I../hostw -I../public -I../smash -I../common -I../hwmon \