]> err.no Git - varnish/commitdiff
Use space to separate host and port in backend spec.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 14 Jul 2006 13:52:11 +0000 (13:52 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 14 Jul 2006 13:52:11 +0000 (13:52 +0000)
Polish usage message a bit.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@479 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 8e4f5892e48be2a24347bfe17377743055c634b7..13c49303e32f39d621ea2dcf001ffaf6745c3a11 100644 (file)
@@ -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 <hostname_or_IP>");
+       fprintf(stderr, "    %-28s # %s\n", "",
+           "   -b '<hostname_or_IP> <port_or_service>'");
        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,<buckets>");
+       fprintf(stderr, "    %-28s # %s\n", "",
+           "  -h classic,<buckets>,<buckets_per_mutex>");
        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,<dir_or_file>");
+       fprintf(stderr, "    %-28s # %s\n", "",
+           "  -s file,<dir_or_file>,<size>");
        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 <fixed_count>");
+       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