2012-01-20 17:45:26 +00:00
|
|
|
#!/bin/bash
|
2012-02-02 12:07:46 +00:00
|
|
|
test $(ulimit -l) -lt 64 && exit 1
|
|
|
|
test $(ulimit -s) -lt 8192 && exit 1
|
2012-01-20 17:45:26 +00:00
|
|
|
if test $(getconf LONG_BIT) -le 32 ; then
|
2012-02-02 12:07:46 +00:00
|
|
|
test $(ulimit -m) -lt 3145728 && exit 1
|
|
|
|
test $(ulimit -v) -lt 4194304 && exit 1
|
2012-01-20 17:45:26 +00:00
|
|
|
else
|
2012-02-02 12:07:46 +00:00
|
|
|
test $(ulimit -m) -lt 4194304 && exit 1
|
|
|
|
test $(ulimit -v) -lt 6683794 && exit 1
|
2012-01-20 17:45:26 +00:00
|
|
|
fi
|
|
|
|
exit 0
|