FS#63256 - [varnish] varnish-vcl-reload fails to properly discard the previous vcl

Attached to Project: Arch Linux
Opened by guillaume quintard (gquintard) - Monday, 22 July 2019, 17:35 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 05 March 2020, 18:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

noticed in varnish 6.2.0-2

long story short:

```
activecfg=$(varnishadm 'vcl.list' | awk '/active/ { print $4 }')
```

is now wrong because the output of `varnishadm vcl.list` has changed and the vcl name is now in field 5

I'll point out that both RHEL and debian based distributions use https://github.com/varnishcache/pkg-varnish-cache/blob/weekly/systemd/varnishreload

You can also use `varnishadm vcl.list -j` to get JSON output which should be more stable
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 05 March 2020, 18:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  Haven't heard feedback and it works for me so I'll consider it done.
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 24 February 2020, 10:17 GMT
Thanks for the hint. Please check rel -2 in [testing]. It uses the upstream suggestions for systemd packaging.

Loading...