fix the hack used to kill running services in the chrooted env
This commit is contained in:
parent
5e1b2dd071
commit
0d70397754
1 changed files with 4 additions and 4 deletions
|
@ -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,9 +68,9 @@ 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
|
||||
|
|
Loading…
Reference in a new issue