• Poul-Henning Kamp's avatar
    Implement varnishd -I <cli_file> · 9e272275
    Poul-Henning Kamp authored
    The CLI commands in the file are executed before the worker
    process is started, and the output is sent to stderr.
    
    CLI failures (!= 200) are fatal, unless the command is prefixed
    with a '-' in the file.
    
    You can now do things like:
    
    	$ cat I.file
    	vcl.load vcl1 /foo/bar1.vcl
    	vcl.load vcl2 /foo/bar2.vcl
    	vcl.load vcl3 /foo/bar3.vcl
    	start
    	$ varnishd -f '' -I I.file -a :80 [...]
    9e272275
vcli_serve.c 15.3 KB