Skip to content

Instantly share code, notes, and snippets.

@q0rban
Created January 8, 2012 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q0rban/1578740 to your computer and use it in GitHub Desktop.
Save q0rban/1578740 to your computer and use it in GitHub Desktop.
Varnish script to connect to the CLI
#!/bin/bash
# Reload a varnish config
# Author: Kristian Lyngstol
# (defined in /etc/default/varnish or on startup)
HOSTPORT="localhost:6082"
SECRET='/etc/varnish/secret'
varnishadm -T $HOSTPORT -S $SECRET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment