[master] a200018 we can run without any arguments

Nils Goroll nils.goroll at uplex.de
Thu May 28 14:03:50 CEST 2015


commit a200018f62e52aac6ffaa4ad8ae2b9603a1d0039
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu May 28 13:51:42 2015 +0200

    we can run without any arguments
    
    varnishd will (try to) to accept on the default port *:80 and listen to cli
    commands.
    
    A warning will get emitted:
    
    Warning: Neither -b nor -f given, won't start a worker child.
             Master process started, use varnishadm to control it.

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index eafdcb6..56c51b7 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -655,10 +655,6 @@ main(int argc, char * const *argv)
 	if (b_arg != NULL && f_arg != NULL)
 		ARGV_ERR("Only one of -b or -f can be specified\n");
 
-	if (d_flag == 0 && b_arg == NULL && f_arg == NULL && M_arg == NULL)
-		ARGV_ERR("At least one of -d, -b, -f or -M "
-		    "must be specified\n");
-
 	if (S_arg != NULL && *S_arg == '\0') {
 		fprintf(stderr,
 		    "Warning: Empty -S argument, no CLI authentication.\n");



More information about the varnish-commit mailing list