2 Options for generic frontend server and yaz-ztest.
3 Included in both manual and man page for yaz-ztest
8 <term><literal>-a </literal>
9 <replaceable>file</replaceable></term>
11 Specify a file for dumping PDUs (for diagnostic purposes).
12 The special name <literal>-</literal> (dash) sends output to
13 <literal>stderr</literal>.
17 <term><literal>-S</literal></term>
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
27 <term><literal>-1</literal></term>
29 Like <literal>-S</literal> but after one session the server
30 exits. This mode is for debugging <emphasis>only</emphasis>.
34 <term><literal>-T</literal></term>
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.
42 <term><literal>-s</literal></term>
44 Use the SR protocol (obsolete).
48 <term><literal>-z</literal></term>
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.
59 <term><literal>-l </literal><replaceable>file</replaceable></term>
60 <listitem><para>The logfile.
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>.
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.
79 <term><literal>-C </literal><replaceable>fname</replaceable></term>
80 <listitem><para>Sets SSL certificate file name for server (PEM).
84 <term><literal>-v </literal><replaceable>level</replaceable></term>
86 The log level. Use a comma-separated list of members of the set
87 {fatal,debug,warn,log,malloc,all,none}.
91 <term><literal>-u </literal><replaceable>uid</replaceable></term>
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
100 <term><literal>-w </literal><replaceable>dir</replaceable></term>
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>).
109 <literal>-p </literal><replaceable>pidfile</replaceable>
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>.
118 <term><literal>-i</literal></term>
120 Use this to make the the server run from the
121 <application>inetd</application> server (UNIX only).
125 <term><literal>-D</literal></term>
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.
133 <term><literal>-install</literal></term>
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.
141 <term><literal>-installa</literal></term>
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.
149 <term><literal>-remove</literal></term>
151 Use this to remove the server from the NT services
152 (Windows NT/2000/XP only).
156 <term><literal>-t </literal><replaceable>minutes</replaceable></term>
158 Idle session timeout, in minutes.
162 <term><literal>-k </literal><replaceable>size</replaceable></term>
164 Maximum record size/message size, in kilobytes.
168 <term><literal>-K</literal></term>
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
177 <term><literal>-r </literal><replaceable>size</replaceable></term>
179 Maximum size of log file before rotation occurs, in kilobytes.
180 Default size is 1048576 k (=1 GB).
185 <literal>-d </literal><replaceable>daemon</replaceable>
188 Set name of daemon to be used in hosts access file.
191 <refentrytitle>hosts_access</refentrytitle>
192 <manvolnum>5</manvolnum>
196 <refentrytitle>tcpd</refentrytitle>
197 <manvolnum>8</manvolnum>
202 <term><literal>-m </literal><replaceable>time-format</replaceable></term>
204 Sets the format of time-stamps in the log-file. Specify a string in
205 the input format to <literal>strftime()</literal>.
209 <term><literal>-V </literal></term>
211 Display YAZ version and exit.
216 <!-- Keep this comment at the end of the file