Commit 19315068 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't allow silent failure when neither of the following options are

specified:  -d, -b, -f, -S or -T

In human terms, this means that it is legal to start varnishd without
a Vcl or backend, but only if you have a CLI channel of some kind.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5524 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 0792f3dc
......@@ -539,6 +539,10 @@ main(int argc, char * const *argv)
if (b_arg != NULL && f_arg != NULL) {
fprintf(stderr, "Only one of -b or -f can be specified\n");
usage();
} else if (S_arg == NULL && T_arg == NULL) {
fprintf(stderr,
"At least one of -d, -b, -f, -S or -T must be specified\n");
usage();
}
if (f_arg != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment