summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-07-16 09:30:47 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-07-16 09:30:47 +0200
commitfcefef408d150eb3fc3d63efdcc370973b54eaeb (patch)
tree3d458d65f31125843055e78735c5bbf96740a69d
parent78de0a3bfca15c9793bcb24381d843fdc43a9516 (diff)
SPEC-3495: fix greping of systemd unitsjellyfish_9.99.2jellyfish/9.99.29.99.2
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 <clabbe@baylibre.com>
-rwxr-xr-xcommon/scripts/application-lifecycle.sh8
1 files 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"