File size: 158 Bytes
565b868 | 1 2 3 4 5 | #!/bin/bash
# equivalent of systemd OOMScoreAdjust=1000: make this process (and children) the first OOM victim
echo 1000 > /proc/self/oom_score_adj
exec "$@"
|
565b868 | 1 2 3 4 5 | #!/bin/bash
# equivalent of systemd OOMScoreAdjust=1000: make this process (and children) the first OOM victim
echo 1000 > /proc/self/oom_score_adj
exec "$@"
|