Centos/RHEL init script - reload/configtest
ross at trademe.co.nz
Thu Oct 14 23:06:09 CEST 2010
It's easy enough to load a new config on the fly (without losing the contents of the cache) using the Varnish CLI.
I actually use a small shell script to call varnishadm against our Varnish servers.
It's easier than logging on to each one individually and doing 'vcl.load test-conf.vcl' followed by 'vcl.use test-conf.vcl'
From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Simon Lyall
Sent: Thursday, 14 October 2010 3:41 p.m.
To: varnish-misc at varnish-cache.org
Subject: Centos/RHEL init script - reload/configtest
I'm using the RHEL/Centos packages ( varnish-2.1.3 SVN 5049:5055 ) and I notice that the init.d script doesn't have a way to reload a new config without restarting the daemon (and losing the current cache).
Looking around I came across the following version:
which appears to impliment config checking and reloading of new configs.
Looks like it would be easy enough to adapt.
Just wondering if anyone else has already done this and if so could they share (and perhaps if the official packages could include)?
Assuming this is actually a good idea of course.
Simon Lyall | Very Busy | Web: http://www.darkmere.gen.nz/ "To stay awake all night adds a day to your life" - Stilgar | eMT.
varnish-misc mailing list
varnish-misc at varnish-cache.org
More information about the varnish-misc