Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
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
varnish-cache
Commits
65e34661
Commit
65e34661
authored
Oct 26, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require -w when running in daemon mode
parent
b5d305ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
varnishlog.c
bin/varnishlog/varnishlog.c
+3
-0
varnishlog_options.h
bin/varnishlog/varnishlog_options.h
+2
-1
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+3
-0
varnishncsa_options.h
bin/varnishncsa/varnishncsa_options.h
+2
-1
No files found.
bin/varnishlog/varnishlog.c
View file @
65e34661
...
...
@@ -145,6 +145,9 @@ main(int argc, char * const *argv)
if
(
optind
!=
argc
)
usage
(
1
);
if
(
VUT
.
D_opt
&&
!
LOG
.
w_arg
)
VUT_Error
(
1
,
"Missing -w option"
);
/* Setup output */
if
(
LOG
.
A_opt
||
!
LOG
.
w_arg
)
VUT
.
dispatch_f
=
VSL_PrintTransactions
;
...
...
bin/varnishlog/varnishlog_options.h
View file @
65e34661
...
...
@@ -49,7 +49,8 @@
" receives a SIGHUP the file will be reopened allowing" \
" the old one to be rotated away. The file can then be" \
" read by varnishlog and other tools with the -r option," \
" unless the -A option was specified." \
" unless the -A option was specified. This option is" \
" required when running in daemon mode." \
)
LOG_OPT_a
...
...
bin/varnishncsa/varnishncsa.c
View file @
65e34661
...
...
@@ -972,6 +972,9 @@ main(int argc, char * const *argv)
if
(
optind
!=
argc
)
usage
(
1
);
if
(
VUT
.
D_opt
&&
!
CTX
.
w_arg
)
VUT_Error
(
1
,
"Missing -w option"
);
/* Check for valid grouping mode */
assert
(
VUT
.
g_arg
<
VSL_g__MAX
);
if
(
VUT
.
g_arg
!=
VSL_g_vxid
&&
VUT
.
g_arg
!=
VSL_g_request
)
...
...
bin/varnishncsa/varnishncsa_options.h
View file @
65e34661
...
...
@@ -51,7 +51,8 @@
"Redirect output to file. The file will be overwritten" \
" unless the -a option was specified. If the application" \
" receives a SIGHUP the file will be reopened allowing" \
" the old one to be rotated away." \
" the old one to be rotated away. This option is required" \
" when running in daemon mode." \
)
NCSA_OPT_a
...
...
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