[4.0] 1bbbc97 Add support for setting coresize from sysconfig.

Lasse Karstensen lkarsten at varnish-software.com
Tue Jun 24 11:31:42 CEST 2014

commit 1bbbc97deb6a201d36b8ec191f205acd13f3b8bf
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Tue May 6 12:36:51 2014 +0200

    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.

diff --git a/redhat/varnish.initrc b/redhat/varnish.initrc
index dbaf673..0db3ab6 100755
--- a/redhat/varnish.initrc
+++ b/redhat/varnish.initrc
@@ -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
+	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

More information about the varnish-commit mailing list