mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-08 15:17:45 +00:00
22 lines
318 B
Plaintext
Executable File
22 lines
318 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="oom killer settings"
|
|
|
|
depend()
|
|
{
|
|
after docker
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "Adjusting oom killer settings"
|
|
|
|
for f in $(find /run -name '*.pid')
|
|
do
|
|
PID=$(cat $f)
|
|
[ -f /proc/$PID/oom_score_adj ] && echo "-800" > /proc/$PID/oom_score_adj
|
|
done
|
|
|
|
eend $? "Failed to adjust oom settings"
|
|
}
|