Created
June 14, 2017 17:19
-
-
Save mkorthof/ca375fc3dacad2aef5a021bcf2b23f8c to your computer and use it in GitHub Desktop.
limit freshclam memory usage (cron)
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
29 */1 * * * clamav [ -x /usr/bin/freshclam ] && { ulimit -Sm 512000; ulimit -Sv 512000; ulimit -Hm 1024000; ulimit -Hv 1024000; /usr/bin/freshclam --quiet; } > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...if you can't use cgroups