From: phk Date: Fri, 14 Jul 2006 13:52:11 +0000 (+0000) Subject: Use space to separate host and port in backend spec. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=917e393f766dce20d62883ba1f0a25a1f3385c18;p=varnish Use space to separate host and port in backend spec. Polish usage message a bit. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@479 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 8e4f5892..13c49303 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -118,7 +118,7 @@ vcl_default(const char *bflag) * XXX: a bug for a backend to not reply at that time, so then * XXX: again: we should check it here in the "trivial" case. */ - p = strchr(bflag, ':'); + p = strchr(bflag, ' '); if (p != NULL) { q = p + 1; } else { @@ -444,17 +444,43 @@ usage(void) { fprintf(stderr, "usage: varnishd [options]\n"); fprintf(stderr, " %-28s # %s\n", "-b backend", - "backend IP or hostname"); + "backend location"); + fprintf(stderr, " %-28s # %s\n", "", + " -b "); + fprintf(stderr, " %-28s # %s\n", "", + " -b ' '"); fprintf(stderr, " %-28s # %s\n", "-d", "debug"); fprintf(stderr, " %-28s # %s\n", "-f file", "VCL_file"); fprintf(stderr, " %-28s # %s\n", "-h kind[,hashoptions]", "Hash specification"); + fprintf(stderr, " %-28s # %s\n", "", + " -h simple_list"); + fprintf(stderr, " %-28s # %s\n", "", + " -h classic [default]"); + fprintf(stderr, " %-28s # %s\n", "", + " -h classic,"); + fprintf(stderr, " %-28s # %s\n", "", + " -h classic,,"); fprintf(stderr, " %-28s # %s\n", "-p number", "TCP listen port"); fprintf(stderr, " %-28s # %s\n", "-s kind[,storageoptions]", "Backend storage specification"); + fprintf(stderr, " %-28s # %s\n", "", + " -s malloc"); + fprintf(stderr, " %-28s # %s\n", "", + " -s file [default: use /tmp]"); + fprintf(stderr, " %-28s # %s\n", "", + " -s file,"); + fprintf(stderr, " %-28s # %s\n", "", + " -s file,,"); fprintf(stderr, " %-28s # %s\n", "-t", "Default TTL"); fprintf(stderr, " %-28s # %s\n", "-w int[,int[,int]]", - "Number of worker threads (fixed/{min,max}/{min/max/timeout})"); + "Number of worker threads"); + fprintf(stderr, " %-28s # %s\n", "", + " -w "); + fprintf(stderr, " %-28s # %s\n", "", + " -w min,max"); + fprintf(stderr, " %-28s # %s\n", "", + " -w min,max,timeout [default: -w1,INF,10]"); #if 0 -c clusterid@cluster_controller -m memory_limit