Fix compilation without Libxml2 YAZ-755 revisited
[yaz-moved-to-github.git] / doc / gfs-options.xml
1 <!--
2    Options for generic frontend server and yaz-ztest.
3    Included in both manual and man page for yaz-ztest
4 -->
5
6 <variablelist>
7  <varlistentry>
8   <term><literal>-a </literal>
9   <replaceable>file</replaceable></term>
10   <listitem><para>
11    Specify a file for dumping PDUs (for diagnostic purposes).
12     The special name <literal>-</literal> (dash) sends output to
13     <literal>stderr</literal>.
14   </para></listitem>
15  </varlistentry>
16  <varlistentry>
17   <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>
25  </varlistentry>
26  <varlistentry>
27   <term><literal>-1</literal></term>
28   <listitem><para>
29    Like <literal>-S</literal> but after one session the server
30    exits. This mode is for debugging <emphasis>only</emphasis>.
31  </para></listitem>
32  </varlistentry>
33  <varlistentry>
34   <term><literal>-T</literal></term>
35   <listitem><para>
36    Operate the server in threaded mode. The server creates a thread
37    for each connection rather than a fork a process. Only available
38    on UNIX systems that offers POSIX threads.
39   </para></listitem>
40  </varlistentry>
41  <varlistentry>
42   <term><literal>-s</literal></term>
43   <listitem><para>
44    Use the SR protocol (obsolete).
45  </para></listitem>
46  </varlistentry>
47  <varlistentry>
48   <term><literal>-z</literal></term>
49   <listitem><para>
50    Use the Z39.50 protocol (default). This option and <literal>-s</literal>
51    complement each other.
52    You can use both multiple times on the same command
53    line, between listener-specifications (see below). This way, you
54    can set up the server to listen for connections in both protocols
55    concurrently, on different local ports.
56   </para></listitem>
57  </varlistentry>
58  <varlistentry>
59   <term><literal>-l </literal><replaceable>file</replaceable></term>
60   <listitem><para>The logfile.
61   </para></listitem>
62  </varlistentry>
63  <varlistentry>
64   <term><literal>-c </literal><replaceable>config</replaceable></term>
65   <listitem><para>A user option that serves as a specifier for some
66   sort of configuration, usually a filename.
67   The argument to this option is transferred to member
68   <literal>configname</literal> of the
69   <literal>statserv_options_block</literal>.
70   </para></listitem>
71  </varlistentry>
72  <varlistentry>
73   <term><literal>-f </literal><replaceable>vconfig</replaceable></term>
74   <listitem><para>This specifies an XML file that describes
75   one or more YAZ frontend virtual servers.
76   </para></listitem>
77  </varlistentry>
78  <varlistentry>
79   <term><literal>-C </literal><replaceable>fname</replaceable></term>
80   <listitem><para>Sets SSL certificate file name for server (PEM).
81  </para></listitem>
82  </varlistentry>
83  <varlistentry>
84   <term><literal>-v </literal><replaceable>level</replaceable></term>
85   <listitem><para>
86    The log level. Use a comma-separated list of members of the set
87    {fatal,debug,warn,log,malloc,all,none}.
88   </para></listitem>
89  </varlistentry>
90  <varlistentry>
91   <term><literal>-u </literal><replaceable>uid</replaceable></term>
92   <listitem><para>
93    Set user ID. Sets the real UID of the server process to that of the
94    given user. It's useful if you aren't comfortable with having the
95    server run as root, but you need to start it as such to bind a
96    privileged port.
97   </para></listitem>
98  </varlistentry>
99  <varlistentry>
100   <term><literal>-w </literal><replaceable>dir</replaceable></term>
101   <listitem><para>
102    The server changes to this directory during before listening
103    on incoming connections. This option is useful
104    when the server is operating from the <application>inetd</application>
105    daemon (see <literal>-i</literal>).
106   </para></listitem>
107  </varlistentry>
108  <varlistentry><term>
109   <literal>-p </literal><replaceable>pidfile</replaceable>
110  </term>
111  <listitem><para>
112   Specifies that the server should write its Process ID to
113   file given by <replaceable>pidfile</replaceable>.
114   A typical location would be <filename>/var/run/yaz-ztest.pid</filename>.
115  </para></listitem>
116  </varlistentry>
117  <varlistentry>
118   <term><literal>-i</literal></term>
119   <listitem><para>
120    Use this to make the the server run from the
121    <application>inetd</application> server (UNIX only).
122  </para></listitem>
123  </varlistentry>
124  <varlistentry>
125   <term><literal>-D</literal></term>
126   <listitem><para>
127    Use this to make the server put itself in the background and
128    run as a daemon. If neither <literal>-i</literal> nor
129    <literal>-D</literal> is given, the server starts in the foreground.
130   </para></listitem>
131  </varlistentry>
132  <varlistentry>
133   <term><literal>-install</literal></term>
134   <listitem><para>
135    Use this to install the server as an NT service
136    (Windows NT/2000/XP only).
137    Control the server by going to the Services in the Control Panel.
138  </para></listitem>
139  </varlistentry>
140  <varlistentry>
141   <term><literal>-installa</literal></term>
142   <listitem><para>
143    Use this to install and activate the server as an NT service
144    (Windows NT/2000/XP only).
145    Control the server by going to the Services in the Control Panel.
146   </para></listitem>
147  </varlistentry>
148  <varlistentry>
149   <term><literal>-remove</literal></term>
150   <listitem><para>
151    Use this to remove the server from the NT services
152    (Windows NT/2000/XP only).
153  </para></listitem>
154  </varlistentry>
155  <varlistentry>
156   <term><literal>-t </literal><replaceable>minutes</replaceable></term>
157   <listitem><para>
158    Idle session timeout, in minutes.
159  </para></listitem>
160  </varlistentry>
161  <varlistentry>
162   <term><literal>-k </literal><replaceable>size</replaceable></term>
163   <listitem><para>
164    Maximum record size/message size, in kilobytes.
165   </para></listitem>
166  </varlistentry>
167  <varlistentry>
168   <term><literal>-K</literal></term>
169   <listitem><para>
170    Forces no-keepalive for HTTP sessions. By default GFS will keep
171    sessions alive for HTTP 1.1 sessions (as defined by the standard).
172    Using this option will force GFS to close the connection for each
173    operation.
174   </para></listitem>
175  </varlistentry>
176  <varlistentry>
177   <term><literal>-r </literal><replaceable>size</replaceable></term>
178   <listitem><para>
179    Maximum size of log file before rotation occurs, in kilobytes.
180    Default size is 1048576 k (=1 GB).
181   </para></listitem>
182  </varlistentry>
183  <varlistentry>
184   <term>
185    <literal>-d </literal><replaceable>daemon</replaceable>
186   </term>
187   <listitem><para>
188    Set name of daemon to be used in hosts access file.
189    See
190    <citerefentry>
191     <refentrytitle>hosts_access</refentrytitle>
192     <manvolnum>5</manvolnum>
193    </citerefentry>
194    and
195    <citerefentry>
196     <refentrytitle>tcpd</refentrytitle>
197     <manvolnum>8</manvolnum>
198     </citerefentry>.
199   </para></listitem>
200  </varlistentry>
201  <varlistentry>
202   <term><literal>-m </literal><replaceable>time-format</replaceable></term>
203   <listitem><para>
204    Sets the format of time-stamps in the log-file. Specify a string in
205    the input format to <literal>strftime()</literal>.
206   </para></listitem>
207  </varlistentry>
208  <varlistentry>
209   <term><literal>-V </literal></term>
210   <listitem><para>
211    Display YAZ version and exit.
212   </para></listitem>
213  </varlistentry>
214 </variablelist>
215
216 <!-- Keep this comment at the end of the file
217 Local variables:
218 mode: nxml
219 nxml-child-indent: 1
220 End:
221 -->