Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pkg-varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
pkg-varnish-cache
Commits
bc80f39a
Commit
bc80f39a
authored
Mar 21, 2017
by
Dridi Boukelmoune
Committed by
Denis Brækhus
Oct 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usage
parent
f8b4498d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
varnishreload
varnishreload
+19
-0
No files found.
varnishreload
View file @
bc80f39a
...
...
@@ -6,6 +6,25 @@ set -u
WORK_DIR
=
VCL_FILE
=
WARMUP
=
SCRIPT
=
"
$0
"
usage
()
{
cat
<<-
EOF
Error:
$1
.
Usage:
$SCRIPT
[-n <workdir>] [-w <warmup>] [<file>]
Reload and use a VCL on a running Varnish instance. Options must be
specified in that order when used:
-n <workdir> : for a different working directory for varnishd
-w <warmup> : the waiting period between load and use operations
When <file> is empty or missing, the active VCL's file is used but
will fail if the active VCL wasn't loaded from a file.
EOF
exit
1
}
varnishadm
()
{
if
!
OUTPUT
=
$(
command
varnishadm
-n
"
$WORK_DIR
"
--
"
$@
"
2>&1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment