X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fzebrasrv-options.xml;fp=doc%2Fzebrasrv-options.xml;h=9d39d3c92853312f2b274392ddb84bb4aae4d0dd;hb=c473db9c7ca11d1bbe1d0c980c48f4e470cfde70;hp=6915e0ded7bf69460a06408bcab206f564892533;hpb=3d6d9a44b38717e7e9a2c64b68db895998d4de82;p=idzebra-moved-to-github.git diff --git a/doc/zebrasrv-options.xml b/doc/zebrasrv-options.xml index 6915e0d..9d39d3c 100644 --- a/doc/zebrasrv-options.xml +++ b/doc/zebrasrv-options.xml @@ -1,5 +1,5 @@ @@ -20,7 +20,8 @@ debugging, but not recommended for real operation: Although the server is asynchronous and non-blocking, it can be nice to keep a software malfunction (okay then, a crash) from affecting all - current users. + current users. The server can only accept a single + connection in this mode. -1 @@ -53,17 +54,18 @@ -l file - The logfile. + + Specify an output file for the diagnostic messages. + The default is to write this information to + stderr -c - config - A user option that serves as a specifier for some - sort of configuration, usually a filename. - The argument to this option is transferred to member - configname of the - statserv_options_block. - + config-file + Read configuration information from + config-file. + The default configuration is ./zebra.cfg + -f vconfig @@ -93,9 +95,9 @@ -w - dir + working-directory - The server changes to this directory during before listening + The server changes to this working directory during before listening on incoming connections. This option is useful when the server is operating from the inetd daemon (see -i). @@ -113,6 +115,9 @@ Use this to make the the server run from the inetd server (UNIX only). + Make sure you use the logfile option -l in + conjunction with this mode and specify the -l + option before any other options. -D @@ -145,13 +150,13 @@ -t minutes - Idle session timeout, in minutes. + Idle session timeout, in minutes. Default is 60 minutes. -k size - Maximum record size/message size, in kilobytes. + Maximum record size/message size, in kilobytes. Default is 1024 KB (1 MB). @@ -174,6 +179,55 @@ + + + A listener-address consists of an optional + transport mode followed by a colon (:) followed by a listener address. + The transport mode is either a file system socket + unix, + a SSL TCP/IP socket ssl, or a plain TCP/IP socket + tcp (default). + + + + For TCP, an address has the form + + hostname | IP-number [: portnumber] + + The port number defaults to 210 (standard Z39.50 port) for + privileged users (root), and 9999 for normal users. + The special hostname "@" is mapped to + the address INADDR_ANY, which causes the server to listen on any local + interface. + + + The default behavior for zebrasrv - if started + as non-priviledged user - is to establish + a single TCP/IP listener, for the Z39.50 protocol, on port 9999. + + zebrasrv @ + zebrasrv tcp:some.server.name.org:1234 + zebrasrv ssl:@:3000 + + + + + To start the server listening on the registered port for + Z39.50, or on a filesystem socket, + and to drop root privileges once the ports are bound, execute + the server like this from a root shell: + + zebrasrv -u daemon @ + zebrasrv -u daemon tcp:@:210 + zebrasrv -u daemon unix:/some/file/system/socket + + Here daemon is an existing user account, and the + unix socket /some/file/system/socket is readable + and writable for the daemon account. + + + +