Commit 6b3b04ff authored by Abiola Ibrahim's avatar Abiola Ibrahim

Merge pull request #85 from jpoehls/master

Tweaked ulimit warning message.
parents 99c069df 36bc3a45
...@@ -117,7 +117,7 @@ func checkFdlimit() { ...@@ -117,7 +117,7 @@ func checkFdlimit() {
// Note that an error here need not be reported // Note that an error here need not be reported
lim, err := strconv.Atoi(string(bytes.TrimSpace(out))) lim, err := strconv.Atoi(string(bytes.TrimSpace(out)))
if err == nil && lim < min { if err == nil && lim < min {
fmt.Printf("Warning: File descriptor limit %d is too low for production sites. Recommend at least ulimit -n %d\n", lim, min) fmt.Printf("Warning: File descriptor limit %d is too low for production sites.\nAt least %d is recommended. Set with \"ulimit -n %d\".\n", lim, min, min)
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment