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
b39019c8
Commit
b39019c8
authored
Aug 16, 2018
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tolerate vcl.show error 201 (response truncated)
Fixes #104
parent
628ea67c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
varnishreload
systemd/varnishreload
+17
-9
No files found.
systemd/varnishreload
View file @
b39019c8
...
...
@@ -112,15 +112,23 @@ find_label_ref() {
}
find_vcl_file
()
{
VCL_SHOW
=
$(
varnishadm vcl.show
-v
"
$VCL_NAME
"
)
||
fail
"failed to get the VCL file name"
echo
"
$VCL_SHOW
"
|
awk
'$1 == "//" && $2 == "VCL.SHOW" {print; exit}'
|
{
# all this ceremony to handle blanks in FILE
read
-r
DELIM VCL_SHOW INDEX SIZE FILE
echo
"
$FILE
"
}
VCL_SHOW
=
$(
varnishadm vcl.show
-v
"
$VCL_NAME
"
2>&1
)
||
:
VCL_FILE
=
$(
echo
"
$VCL_SHOW
"
|
awk
'$1 == "//" && $2 == "VCL.SHOW" {print; exit}'
|
{
# all this ceremony to handle blanks in FILE
read
-r
DELIM VCL_SHOW INDEX SIZE FILE
echo
"
$FILE
"
}
)
||
:
if
[
-z
"
$VCL_FILE
"
]
then
echo
"
$VCL_SHOW
"
>
&2
fail
"failed to get the VCL file name"
fi
echo
"
$VCL_FILE
"
}
find_vcl_reloads
()
{
...
...
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