Re: [Bug 1284095] [NEW] add configtest action to init.d script

2014-03-03 Thread Stig Sandbeck Mathisen
Samuele Giovanni Tonon <1284...@bugs.launchpad.net> writes: > i think they are two totally different scenarios. > > i'd use "-C" or configtest just as a syntax check, the same way > apachectl configtest or nginx -t -c /etc/nginx/nginx.conf . Actually, good point. I've been using "varnishadm vcl.

Re: [Bug 1284095] [NEW] add configtest action to init.d script

2014-03-02 Thread Samuele Giovanni Tonon
On 03/02/2014 04:34 PM, Stig Sandbeck Mathisen wrote: > On Mon, Feb 24, 2014 at 01:02:41PM -, Samuele Giovanni Tonon wrote: >> Public bug reported: >> >> hello, it would be awesome to have a configtest action in the init.d >> script , in this way you can safely test a vcl configuration by just

Re: [Bug 1284095] [NEW] add configtest action to init.d script

2014-03-02 Thread Stig Sandbeck Mathisen
On Mon, Feb 24, 2014 at 01:02:41PM -, Samuele Giovanni Tonon wrote: > Public bug reported: > > hello, it would be awesome to have a configtest action in the init.d > script , in this way you can safely test a vcl configuration by just > doing > > /etc/init.d/varnish configtest Thank you. Au

[Bug 1284095] [NEW] add configtest action to init.d script

2014-02-24 Thread Samuele Giovanni Tonon
Public bug reported: hello, it would be awesome to have a configtest action in the init.d script , in this way you can safely test a vcl configuration by just doing /etc/init.d/varnish configtest this can be done by applying this simple patch to /etc/init.d/varnish --- /etc/init.d/varnish.old