Jan Engelhardt
e3091c8697
- Make reload fail nicely on vcl syntax error - Set TasksMax=16384 because default thread_pool_max is 5000 so systemd killed varnish on high load OBS-URL: https://build.opensuse.org/request/show/1005874 OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=116
12 lines
308 B
Bash
12 lines
308 B
Bash
#!/bin/bash -e
|
|
|
|
# Generate a unique timestamp ID for this version of the VCL
|
|
TIME=$(date +%s)
|
|
|
|
vadm="varnishadm -S /var/cache/varnish/varnishd/_.secret -T 127.0.0.1:6082"
|
|
# Load the file into memory
|
|
$vadm vcl.load varnish_$TIME /etc/varnish/vcl.conf
|
|
|
|
# Active this Varnish config
|
|
$vadm vcl.use varnish_$TIME
|