varnish/varnish_reload_vcl
2022-09-18 21:03:45 +00:00

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