File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ RUN --mount=type=tmpfs,target=/var/log \
73
73
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales \
74
74
ca-certificates rsync \
75
75
pkg-config patch \
76
- gawk parallel \
76
+ gawk \
77
77
anacron wget \
78
78
psmisc whois brotli \
79
79
pngcrush pngquant ripgrep poppler-utils \
Original file line number Diff line number Diff line change 5
5
shutdown () {
6
6
echo Shutting Down
7
7
/etc/runit/3
8
- ls /etc/service | SHELL=/bin/sh parallel sv force-stop {}
8
+ ls /etc/service | xargs sv force-stop
9
9
kill -HUP $RUNSVDIR
10
10
wait $RUNSVDIR
11
11
12
12
# give stuff a bit of time to finish
13
13
sleep 0.1
14
14
15
15
ORPHANS=` ps -eo pid | grep -v PID | tr -d ' ' | grep -v ' ^1$' `
16
- SHELL=/bin/bash parallel ' timeout 5 /bin/bash -c "kill {} && wait {}" || kill -9 {}' ::: $ORPHANS 2> /dev/null
16
+ for pid in $ORPHANS ; do
17
+ (timeout 5 /bin/bash -c " kill $pid && wait $pid " 2> /dev/null || kill -9 $pid 2> /dev/null) &
18
+ done
19
+ wait
17
20
exit
18
21
}
19
22
You can’t perform that action at this time.
0 commit comments