[PATCH] Allow varnishncsa logformat to be read from a file

Kristian Grønfeldt Sørensen ksorensen at nordija.com
Mon Dec 15 23:25:12 CET 2014


Hi all,

This patch allows varnishncsa to obtain the logformat string from a file
instead of a command line argument. The main usecase is for sysv init
scripts where shell expansion causes issues like
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657449 .
Varnishncsa will read a single line from the specified af the "-f"
option, use that as the logging format and close the file.
I don't really like using -f as an option, as that has a different
meaning in varnishncsa 3.0.x (X-Forwarded-For vs client.ip), but I
couldn't come up with a better alternative.

Comments?

BR 
Kristian Sørensen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-varnishncsa-logformat-to-be-read-from-a-file.patch
Type: text/x-patch
Size: 2892 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141215/6c5030a4/attachment.bin>


More information about the varnish-dev mailing list