From 0d70397754badf6bf3cf0d8f9adfeb90ae1fd014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20HANNEBERT?= Date: Mon, 18 Jul 2022 11:55:38 +0200 Subject: [PATCH] fix the hack used to kill running services in the chrooted env --- stage3/00-install-yunohost/00-run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stage3/00-install-yunohost/00-run.sh b/stage3/00-install-yunohost/00-run.sh index 4b349fe..493e9b6 100755 --- a/stage3/00-install-yunohost/00-run.sh +++ b/stage3/00-install-yunohost/00-run.sh @@ -60,7 +60,7 @@ EOF # the rootfs/image after that ? while lsof 2>/dev/null | grep -q /root/rpi-image/work/*/export-image/rootfs/dev; do - for PID in `ps -ef --forest | grep "qemu-arm-static" | grep -v "grep" | grep "nginx\|nscd\|slapd\|nslcd" | awk '{print $2}'` + for PID in `ps -ef --forest | grep "qemu-binfmt" | grep -v "grep" | grep "nginx\|nscd\|slapd\|nslcd" | awk '{print $2}'` do echo "Killing $PID" kill -9 $PID || true @@ -68,13 +68,13 @@ do done sleep 5 done -while ps -ef --forest | grep "qemu-arm-static" | grep -v "grep" +while ps -ef --forest | grep "qemu-binfmt" | grep -v "grep" do - for PID in `ps -ef --forest | grep "qemu-arm-static" | grep -v "grep" | grep "nginx\|nscd\|slapd\|nslcd" | awk '{print $2}'` + for PID in `ps -ef --forest | grep "qemu-binfmt" | grep -v "grep" | grep "nginx\|nscd\|slapd\|nslcd" | awk '{print $2}'` do echo "Killing $PID" kill -9 $PID || true sleep 1 done sleep 5 -done +done \ No newline at end of file