Jan Engelhardt
e21e452795
- Fix logrotate - Add service reload There is still trouble with systemctl stop varnish that takes too long. OBS-URL: https://build.opensuse.org/request/show/1004422 OBS-URL: https://build.opensuse.org/package/show/server:http/varnish?expand=0&rev=114
12 lines
305 B
Bash
12 lines
305 B
Bash
#!/bin/bash
|
|
|
|
# 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
|