
varnish-bugs at varnish-cache
Dec 8, 2011, 8:40 AM
Post #1 of 2
(185 views)
Permalink
|
|
#1069: `varnishd -C` does not return an appropriate return code
|
|
#1069: `varnishd -C` does not return an appropriate return code ----------------------+----------------------------------------------------- Reporter: erikwebb | Type: defect Status: new | Priority: high Milestone: | Component: build Version: 3.0.0 | Severity: normal Keywords: | ----------------------+----------------------------------------------------- To allow for easier scripting and management of VCL changes, the `varnishd -C` check for correct syntax should return a proper return code. Regardless of the compilation outcome, zero is returned. {{{ $ varnishd -C -f /path/to/bad/file/default.vcl Message from VCC-compiler: Expected one of 'acl', 'sub', 'backend', 'director', 'probe', or 'import' Found: 'asdasd' at ('input' Line 211 Pos 2) }asdasd -###### Running VCC-compiler failed, exit 1 $ echo $? 0 }}} {{{ $ varnishd -C -f /path/to/good/file/default.vcl /* * NB: This file is machine generated, DO NOT EDIT! * * Edit and run generate.py instead */ struct sess; struct cli; typedef void vcl_init_f(struct cli *); typedef void vcl_fini_f(struct cli *); typedef int vcl_func_f(struct sess *sp); ... $ echo $? 0 }}} -- Ticket URL: <https://www.varnish-cache.org/trac/ticket/1069> Varnish <https://varnish-cache.org/> The Varnish HTTP Accelerator _______________________________________________ varnish-bugs mailing list varnish-bugs [at] varnish-cache https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
|