0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Merge pull request #85 from jpoehls/master

Tweaked ulimit warning message.
This commit is contained in:
Abiola Ibrahim 2015-05-23 02:37:45 +01:00
commit 6b3b04ffb7

View file

@ -117,7 +117,7 @@ func checkFdlimit() {
// Note that an error here need not be reported
lim, err := strconv.Atoi(string(bytes.TrimSpace(out)))
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)
}
}
}