Syntax for piping varnish logs to rotatelogs

Hugo Cisneiros (Eitch) hugo.cisneiros at gmail.com
Tue Jun 26 19:49:54 CEST 2012


On Tue, Jun 26, 2012 at 2:01 PM, Rowan @ Jetboy <rowan at jetboy.co.uk> wrote:
> Ubuntu 12.04 Server x64, Varnish 3.0.2
>
> I'm trying to pipe varnishncsa's logs through Apache's rotatelogs, and
> running from the shell, things work fine:
>
> sudo varnishncsa -a -P /var/run/varnishncsa/varnishncsa.pid
> |/usr/sbin/rotatelogs /var/log/varnish/varnish.log.%Y%m%d%H 3600
[...]

I don't really know if this is the issue you're running, but maybe it
its. Check this out:

http://my.opera.com/cstrep/blog/2011/11/30/how-to-start-up-varnish-with-a-custom-cc-command-on-debian

I had some problems adding the -F to varnishncsa daemon and it worked.
Attaching the "bash -c" before the start-stop-daemon did the trick.
Maybe the init script is ignoring your parameters for the same reason.

-- 
[]'s
Hugo
www.devin.com.br



More information about the varnish-misc mailing list