Created
January 8, 2012 15:40
-
-
Save q0rban/1578740 to your computer and use it in GitHub Desktop.
Varnish script to connect to the CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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