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

Use space to separate host and port in backend spec.

Polish usage message a bit.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@479 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c72bb9bd
...@@ -118,7 +118,7 @@ vcl_default(const char *bflag) ...@@ -118,7 +118,7 @@ vcl_default(const char *bflag)
* XXX: a bug for a backend to not reply at that time, so then * 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. * XXX: again: we should check it here in the "trivial" case.
*/ */
p = strchr(bflag, ':'); p = strchr(bflag, ' ');
if (p != NULL) { if (p != NULL) {
q = p + 1; q = p + 1;
} else { } else {
...@@ -444,17 +444,43 @@ usage(void) ...@@ -444,17 +444,43 @@ usage(void)
{ {
fprintf(stderr, "usage: varnishd [options]\n"); fprintf(stderr, "usage: varnishd [options]\n");
fprintf(stderr, " %-28s # %s\n", "-b backend", 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", "-d", "debug");
fprintf(stderr, " %-28s # %s\n", "-f file", "VCL_file"); fprintf(stderr, " %-28s # %s\n", "-f file", "VCL_file");
fprintf(stderr, " %-28s # %s\n", fprintf(stderr, " %-28s # %s\n",
"-h kind[,hashoptions]", "Hash specification"); "-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", "-p number", "TCP listen port");
fprintf(stderr, " %-28s # %s\n", fprintf(stderr, " %-28s # %s\n",
"-s kind[,storageoptions]", "Backend storage specification"); "-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", "-t", "Default TTL");
fprintf(stderr, " %-28s # %s\n", "-w int[,int[,int]]", 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 #if 0
-c clusterid@cluster_controller -c clusterid@cluster_controller
-m memory_limit -m memory_limit
......
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