X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=doc%2Fyaz-proxy-ref.xml;h=e18d9d65a03872535f78d46a3a5953280e47aab2;hp=209a178468ef44c949296d8d04f59e920483839f;hb=9b8dda8226cff9fb0ee5bf8d7c0e88e9613df63e;hpb=e9a5a9feeb12335c668b73dbb6385908be6806f1 diff --git a/doc/yaz-proxy-ref.xml b/doc/yaz-proxy-ref.xml index 209a178..e18d9d6 100644 --- a/doc/yaz-proxy-ref.xml +++ b/doc/yaz-proxy-ref.xml @@ -1,25 +1,35 @@ + + yazproxy + Index Data + + yazproxy 8 + System management commands yazproxy - The YAZ toolkit's transparent Z39.50/SRW/SRU proxy + The YAZ toolkit's transparent Z39.50/SRU proxy yazproxy -a filename + -c config + -D + -i seconds -l filename -m num - -v level - -t target + -n num -o level - -i seconds - -T seconds + -t target -p pidfile + -T seconds -u userid - -c config + -v level + -V + -X host:port @@ -27,7 +37,7 @@ DESCRIPTION yazproxy is a proxy that accepts connections - from Z39.50/SRW/SRU clients and contacts a Z39.50 backend. + from Z39.50/SRU clients and contacts a Z39.50 backend. The listening port must be specified on the command-line. inetd operation is not supported. The host:port @@ -57,6 +67,27 @@ standard output. + -c config + + Specifies config filename. Configuration is in XML + and is only supported if the YAZ proxy is compiled with + libxml2. + + + -D + + Puts YAZ proxy in the background after startup. This is + similar to using shell's & operator but often better since + it allows the start / stop script to capture startup errors. + + + -i seconds + + Specifies in seconds the idle time for communication between + client and proxy. If a connection is inactive for this long + it will be closed. Default: 600 seconds (10 minutes). + + -l filename Specifies the name of a file to which to write a log of the @@ -67,22 +98,15 @@ -m num - Specifies the maximum number of connections to be cached - [default 50]. - - - -v level - - Sets the logging level. level is - a comma-separated list of members of the set - {fatal,debug,warn,log,malloc,all,none}. + Specifies the maximum number of client connections to be + offered [default 150]. - -t target + -n num - Specifies the default backend target to use when a client - connects that does not explicitly specify a target in its - initRequest. + Sets maximum number of open files to num. + This is only available on systems that offers the + setrlimit(2) call. -o level @@ -93,11 +117,18 @@ features. By default optimization is enabled (value 1). - -i seconds + -p pidfile - Specifies in seconds the idle time for communication between - client and proxy. If a connection is inactive for this long - it will be closed. Default: 600 seconds (10 minutes). + When specified, yazproxy will create pidfile + with the process ID of the proxy. The pidfile will be generated + before the process changes identity (see option -u). + + + -t target + + Specifies the default backend target to use when a client + connects that does not explicitly specify a target in its + initRequest. -T seconds @@ -108,13 +139,6 @@ it will be closed. Default: 600 seconds (10 minutes). - -p pidfile - - When specified, yazproxy will create pidfile - with the process ID of the proxy. The pidfile will be generated - before the process changes identity (see option -u). - - -u userid When specified, yazproxy will change identity to the user ID @@ -123,11 +147,25 @@ if specified by option -u. - -c config + -v level - Specifies config filename. Configuration is in XML - and is only supported if the YAZ proxy is compiled with - libxml2. + Sets the logging level. level is + a comma-separated list of members of the set + {fatal,debug,warn,log,malloc,all,none}. + + + -V + + Displays yazproxy version and exits with status code 0. Should + not be used in conjunction with other options. + + + -X + + Enables debugging mode for the proxy. When specified, the proxy will + not fork itself, thus any violations becomes fatal. Useful if + you run yazproxy inside gdb. + Don't run this in production.