ubuntu package help

Michael Alger varnish at mm.quex.org
Sat Nov 12 07:26:57 CET 2011


On Fri, Nov 11, 2011 at 09:55:57PM -0800, Jeroen Ooms wrote:
> I installed varnish on Ubuntu 11.10 Oneiric though the default
> repositories (apt-get install varnish). The Ubuntu package does
> not just supply /usr/sbin/varnishd and /etc/varnish/default.vcl;
> it also creates some startup entries (/etc/init.d/varnish,
> varnishlog, varnishncsa) by default.  I would like to use this
> package as it was meant, but it is not clear to me how I am
> supposed to use it and I don't think there is any documentation.

I use Debian myself, but Ubuntu is a Debian derivative so probably
follows mostly the same conventions. In that case, you can probably
find documentation in /usr/share/doc/varnish.

> - Does the package assume port 80 is available (hence does it
> conflict with Apache2) ? I installed both but port 80 seems to be
> solely used for Apache.
> - How am I supposed to include my own VCL script? Should I just
> overwrite /etc/varnish/default.vcl ?
> - Is there any place to 'configure' the varnishd startup options,
> or should I hack those into the startup scripts ?

See if there's an /etc/default/varnish file. If it is, that'd
probably be where you specify the startup options, which would
answer all of the above questions.

If not, have a look at what the init.d script does. I'm pretty sure
it's going to be sourcing most of its configuration from some other
location.




More information about the varnish-misc mailing list