From fcefef408d150eb3fc3d63efdcc370973b54eaeb Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Thu, 16 Jul 2020 09:30:47 +0200 Subject: SPEC-3495: fix greping of systemd units The grep pattern for systemd units is not enough restrictive. So let's made grep a little more restrictive. Change-Id: If0f75919a89c39da63e5375e3b3cdd020c6ea324 Bug-AGL: SPEC-3495 Signed-off-by: Corentin LABBE --- common/scripts/application-lifecycle.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/scripts/application-lifecycle.sh b/common/scripts/application-lifecycle.sh index d28709a..0bdc6d4 100755 --- a/common/scripts/application-lifecycle.sh +++ b/common/scripts/application-lifecycle.sh @@ -194,9 +194,9 @@ do fi echo "DEBUG: check if we see the package with systemctl list-units (before start)" - systemctl list-units --full | grep "afm.*$WGTNAME" + systemctl list-units --full | grep "afm.*$WGTNAME--" echo "DEBUG: check if we see the package with systemctl -a (before start)" - systemctl -a |grep "afm.*$WGTNAME" + systemctl -a |grep "afm.*$WGTNAME--" echo "DEBUG: start $NAMEID" do_afm_util start $NAMEID > "rid" @@ -209,9 +209,9 @@ do fi echo "DEBUG: check if we see the package with systemctl list-units (after start)" - systemctl list-units --full | grep "afm.*$WGTNAME" + systemctl list-units --full | grep "afm.*$WGTNAME--" echo "DEBUG: check if we see the package with systemctl -a (after start)" - systemctl -a |grep "afm.*$WGTNAME" + systemctl -a |grep "afm.*$WGTNAME--" echo "DEBUG: Get RID for $NAMEID" PSLIST="pslist" -- cgit 1.2.3-korg