Setting default_ttl in vcl file

Ingvar Hagelund ingvar at
Wed Oct 24 10:33:30 CEST 2007

I take this off varnish-misc as it is quite distro specific.

* Ingvar Hagelund
>> The RedHat and Debian init scripts reads default values from their
>> respective defaults file, that is, for RedHat, /etc/sysconfig/varnish,
>> and for Debian, /etc/defaults/varnish. 

* Dag-Erling Smørgrav
> The problem is that if you define DAEMON_OPTS, none of the other knobs
> work, right?  FreeBSD at least has that issue:
> if you define varnishd_flags, you have to specify everything manually,
> since the other knobs only serve to populate the default value for
> varnishd_flags.

At least for RedHat, there are no other knobs. All the startup
configuration is in the file. There are no hard coded values in the init
script. The init script won't start varnishd if DAEMON_OPTS is empty, or
the config file does not exist.

        if [ "$DAEMON_OPTS" = "" ]; then
            echo "\$DAEMON_OPTS empty."
            echo -n "Please put configuration options in

The configuration file is fairly documented with the most used options,
and points to the manpage for more advanced users.

I would not know if this is suitable for FreeBSD ports, but I think it's
quite a clean method to ensure that the user knows what she wants to
change before changing it. As for myself, I dislike magic "invisible"
default values.


Buddha wears an iPod

More information about the varnish-misc mailing list