varnishadm exit code 200
dridi at varni.sh
Mon Oct 4 03:52:20 UTC 2021
On Sat, Oct 2, 2021 at 10:24 PM Martynas Jusevičius
<martynas at atomgraph.com> wrote:
> Actually it does not seem to be the exit code. I tried checking and it
> looks like the exit code is 0:
> root at dc17c642d39a:/etc/varnish# varnishadm "ban req.url ~ /"
> root at dc17c642d39a:/etc/varnish# test $? -eq 0 || echo "Error"
> root at dc17c642d39a:/etc/varnish#
> So where is that "200" coming from?
You shouldn't see a 200, except for this bug fixed in 7.0:
What version of Varnish are you running?
More information about the varnish-misc