Created
July 20, 2018 11:10
-
-
Save mkorthof/d21d620413e7b953fb58b3194fd7e840 to your computer and use it in GitHub Desktop.
adjust clamscan oom score
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html | |
# https://backdrift.org/oom-killer-how-to-create-oom-exclusions-in-linux | |
echo 10 > /proc/self/oom_score_adj && /usr/bin/clamscan "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment