Control: tags -1 moreinfo Paweł Sadowski <[email protected]> writes:
> When trying to automate VCL deployment with Puppet I hit a bug in > Varnish init.d script. When called with 'reload' argument it always > returns 0, disregarding reload-vcl exit code due to 'exit 0' at the > end of this script. > > I can't think of any reason why this has been added there. > > 'exit 0' is present in 3.x and 4.x packages. I can't reproduce this on 4.0.1-1. Using "sh -x /usr/share/varnish/reload-vcl", I tested the following scenarios: - With varnish running, the return code is "0". - With varnish stopped, the return code is "1". - With a syntax error in the VCL, the return code is "1". - With an unprivileged user, the return code is "1". I need more information. Could you update the bug with the output of "sh -x /usr/share/varnish/reload-vcl ; echo $?" …when run as root? -- Stig Sandbeck Mathisen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

