Commit 1bbbc97d authored by Lasse Karstensen's avatar Lasse Karstensen

Add support for setting coresize from sysconfig.

Add support for using this if it is defined by the administrator
in the /etc/sysconfig/varnish file.

From way back we've had a commented-out DAEMON_COREFILE_LIMIT in
our /etc/sysconfig/varnish file, which wasn't referenced anywhere.

Suggested by: gaoyongwei/itxx00 on github.
parent 4a3735eb
......@@ -60,6 +60,12 @@ start() {
# is often too small for varnish)
ulimit -u ${NPROCS:-unlimited}
# If defined, set maximum core size.
if [ -n "${DAEMON_COREFILE_LIMIT}" ]
then
ulimit -c ${DAEMON_COREFILE_LIMIT}
fi
# $DAEMON_OPTS is set in /etc/sysconfig/varnish. At least, one
# has to set up a backend, or /tmp will be used, which is a bad idea.
if [ "$DAEMON_OPTS" = "" ]; then
......
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