- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
names="com.termux io.twaik.lorie rubberbigpepper.Orientator"
if test ! -e /realproc/cmdline
then
echo Mounting realproc
mount -o remount,rw none /
mkdir /realproc
mount -t proc none /realproc
fi
tail -f /dev/null|am monitor| while read line
do
echo "$line"
for n in $names
do
for p in `pidof $n`
do
if test -e /proc/$p/oom_adj
then
echo Masking pid $p
mount -t tmpfs -o size=4k none /proc/$p/
for f in /realproc/$p/*
do ln -s $f /proc/$p
done
rm /proc/$p/oom_*
fi
echo Setting oom adj for $n $p, was $(cat /realproc/$p/oom_adj)
echo -17 > /realproc/$p/oom_adj
done
done
done
достал oom killer.
Где тут shell в языках?
codershitter 01.12.2019 15:14 # 0