All elements for YAZ GFS XML config described
[yaz-moved-to-github.git] / doc / gfs-options.xml
1 <!-- 
2    $Id: gfs-options.xml,v 1.2 2005-03-14 11:12:16 adam Exp $
3    Options for generic frontend server and yaz-ztest.
4    Included in both manual and man page for yaz-ztest
5 -->
6
7 <variablelist>
8  
9  <varlistentry><term><literal>-a </literal>
10    <replaceable>file</replaceable></term>
11   <listitem><para>
12     Specify a file for dumping PDUs (for diagnostic purposes).
13     The special name <literal>-</literal> (dash) sends output to
14     <literal>stderr</literal>.
15    </para></listitem></varlistentry>
16  
17  <varlistentry><term><literal>-S</literal></term>
18   <listitem><para>
19     Don't fork or make threads on connection requests. This is good for
20     debugging, but not recommended for real operation: Although the
21     server is asynchronous and non-blocking, it can be nice to keep
22     a software malfunction (okay then, a crash) from affecting all
23     current users.
24    </para></listitem></varlistentry>
25  
26  <varlistentry><term><literal>-1</literal></term>
27   <listitem><para>
28     Like <literal>-S</literal> but after one session the server
29     exits. This mode is for debugging <emphasis>only</emphasis>.
30    </para></listitem></varlistentry>
31  
32  <varlistentry><term><literal>-T</literal></term>
33   <listitem><para>
34     Operate the server in threaded mode. The server creates a thread
35     for each connection rather than a fork a process. Only available
36     on UNIX systems that offers POSIX threads.
37    </para></listitem></varlistentry>
38
39  <varlistentry><term><literal>-s</literal></term>
40   <listitem><para>
41     Use the SR protocol (obsolete).
42    </para></listitem></varlistentry>
43
44  <varlistentry><term><literal>-z</literal></term>
45   <listitem><para>
46     Use the Z39.50 protocol (default). This option and <literal>-s</literal>
47     complement each other.
48     You can use both multiple times on the same command
49     line, between listener-specifications (see below). This way, you
50     can set up the server to listen for connections in both protocols
51     concurrently, on different local ports.
52    </para></listitem></varlistentry>
53
54  <varlistentry><term><literal>-l </literal>
55    <replaceable>file</replaceable></term>
56   <listitem><para>The logfile.
57    </para></listitem></varlistentry>
58
59  <varlistentry><term><literal>-c </literal>
60    <replaceable>config</replaceable></term>
61   <listitem><para>A user option that serves as a specifier for some
62     sort of configuration, usually a filename.
63     The argument to this option is transferred to member
64     <literal>configname</literal> of the
65     <literal>statserv_options_block</literal>.
66    </para></listitem></varlistentry>
67
68  <varlistentry><term><literal>-f </literal>
69    <replaceable>vconfig</replaceable></term>
70   <listitem><para>This specifies an XML file that describes
71     one or more YAZ frontend virtual servers.
72    </para></listitem></varlistentry>
73
74  <varlistentry><term><literal>-C </literal>
75    <replaceable>fname</replaceable></term>
76   <listitem><para>Sets SSL certificate file name for server (PEM).
77    </para></listitem></varlistentry>
78
79  <varlistentry><term><literal>-v </literal>
80    <replaceable>level</replaceable></term>
81   <listitem><para>
82     The log level. Use a comma-separated list of members of the set
83     {fatal,debug,warn,log,malloc,all,none}.
84    </para></listitem></varlistentry>
85
86  <varlistentry><term><literal>-u </literal>
87    <replaceable>uid</replaceable></term>
88   <listitem><para>
89     Set user ID. Sets the real UID of the server process to that of the
90     given user. It's useful if you aren't comfortable with having the
91     server run as root, but you need to start it as such to bind a
92     privileged port.
93    </para></listitem></varlistentry>
94
95  <varlistentry><term><literal>-w </literal>
96    <replaceable>dir</replaceable></term>
97   <listitem><para>
98     The server changes to this directory during before listening 
99     on incoming connections. This option is useful
100     when the server is operating from the <application>inetd</application>
101     daemon (see <literal>-i</literal>).
102    </para></listitem></varlistentry>
103
104  <varlistentry><term><literal>-p </literal>
105    <replaceable>pidfile</replaceable></term>
106   <listitem><para>
107     Specifies that the server should write its Process ID to
108     file given by <replaceable>pidfile</replaceable>. 
109     A typical location would be <filename>/var/run/yaz-ztest.pid</filename>.
110    </para></listitem></varlistentry>
111
112  <varlistentry><term><literal>-i</literal></term>
113   <listitem><para>
114     Use this to make the the server run from the
115     <application>inetd</application> server (UNIX only).
116    </para></listitem></varlistentry>
117  
118  <varlistentry><term><literal>-D</literal></term>
119   <listitem><para>
120     Use this to make the server put itself in the background and
121     run as a daemon. If neither <literal>-i</literal> nor 
122     <literal>-D</literal> is given, the server starts in the foreground.
123    </para></listitem></varlistentry>
124  
125  <varlistentry><term><literal>-install</literal></term>
126   <listitem><para>
127     Use this to install the server as an NT service
128     (Windows NT/2000/XP only). 
129     Control the server by going to the Services in the Control Panel.
130    </para></listitem></varlistentry>
131  
132  <varlistentry><term><literal>-installa</literal></term>
133   <listitem><para>
134     Use this to install and activate the server as an NT service
135     (Windows NT/2000/XP only). 
136     Control the server by going to the Services in the Control Panel.
137    </para></listitem></varlistentry>
138  
139  <varlistentry><term><literal>-remove</literal></term>
140   <listitem><para>
141     Use this to remove the server from the NT services
142     (Windows NT/2000/XP only). 
143    </para></listitem></varlistentry>
144  
145  <varlistentry><term><literal>-t </literal>
146    <replaceable>minutes</replaceable></term>
147   <listitem><para>
148     Idle session timeout, in minutes.
149    </para></listitem></varlistentry>
150  
151  <varlistentry><term><literal>-k </literal>
152    <replaceable>size</replaceable></term>
153   <listitem><para>
154     Maximum record size/message size, in kilobytes.
155    </para></listitem>
156  </varlistentry>
157
158  <varlistentry><term><literal>-d </literal>
159    <replaceable>daemon</replaceable></term>
160   <listitem><para>
161     Set name of daemon to be used in hosts access file.
162     See
163     <citerefentry>
164      <refentrytitle>hosts_access</refentrytitle>
165      <manvolnum>5</manvolnum>
166     </citerefentry>
167     and 
168     <citerefentry>
169      <refentrytitle>tcpd</refentrytitle>
170      <manvolnum>8</manvolnum>
171     </citerefentry>.
172    </para></listitem>
173  </varlistentry>
174  
175 </variablelist>
176
177 <!-- Keep this comment at the end of the file
178 Local variables:
179 mode: sgml
180 sgml-omittag:t
181 sgml-shorttag:t
182 sgml-minimize-attributes:nil
183 sgml-always-quote-attributes:t
184 sgml-indent-step:1
185 sgml-indent-data:t
186 sgml-parent-document: "yaz.xml"
187 sgml-local-catalogs: nil
188 sgml-namecase-general:t
189 End:
190 -->