1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY copyright SYSTEM "copyright.xml">
4 <!ENTITY % local SYSTEM "local.ent">
6 <!ENTITY % idcommon SYSTEM "common/common.ent">
9 <refentry id="ref-metaproxy">
11 <productname>Metaproxy</productname>
12 <productnumber>&version;</productnumber>
13 <info><orgname>Index Data</orgname></info>
17 <refentrytitle>metaproxy</refentrytitle>
18 <manvolnum>1</manvolnum>
19 <refmiscinfo class="manual">Commands</refmiscinfo>
23 <refname>metaproxy</refname>
24 <refpurpose>Metaproxy - server</refpurpose>
29 <command>metaproxy</command>
30 <arg choice="opt"><option>--help</option></arg>
31 <arg choice="opt"><option>--version</option></arg>
32 <arg choice="opt"><option>--config <replaceable>config</replaceable></option></arg>
33 <arg choice="opt"><option>-D</option></arg>
34 <arg choice="opt"><option>-l <replaceable>logfile</replaceable></option></arg>
35 <arg choice="opt"><option>-p <replaceable>pidfile</replaceable></option></arg>
36 <arg choice="opt"><option>-t</option></arg>
37 <arg choice="opt"><option>-u <replaceable>ID</replaceable></option></arg>
38 <arg choice="opt"><option>-w <replaceable>dir</replaceable></option></arg>
39 <arg choice="opt"><option>-X</option></arg>
43 <refsect1><title>DESCRIPTION</title>
46 <command>metaproxy</command> is the Metaproxy daemon
51 <refsect1><title>OPTIONS</title>
57 Displays help message.
62 <term>--version</term>
64 Displays Metaproxy version.
69 <term>--config <replaceable>config</replaceable></term>
71 Specify the configuration.
78 Puts Metaproxy in the background after startup.
83 <term>-l <replaceable>logfile</replaceable></term>
85 Specifies YAZ log file.
90 <term>-p <replaceable>pidfile</replaceable></term>
92 Specifies file which holds PID after startup.
99 Tests configuration. Returns exit code 0 on success; non-zero on failure.
104 <term>-u <replaceable>ID</replaceable></term>
106 Makes Metaproxy changes its identity to ID after startup.
111 <term>-w <replaceable>dir</replaceable></term>
113 Changes working directory to <replaceable>dir</replaceable>.
120 Makes Metaproxy operate in debug mode.
127 <refsect1><title>CONFIGURATION</title>
128 <para>Metaproxy's configuration is XML based. All elements
129 should be in namespace <literal>http://indexdata.com/metaproxy</literal>.
132 The root element must be named <literal>metaproxy</literal> and
133 must specify a version. Currently the version must be
134 <literal>1.0</literal>. The children elements of metaproxy
141 Specifies the path for Loadable filter modules
149 Specifies the start route. Takes a <literal>route</literal>
150 attribute with the name of the route.
158 Specifies all filters. Includes one ore more
159 <literal>filter</literal> elements with filter-specific
160 configuration material.
168 Specifies all routes. Includes one or more
169 <literal>route</literal> elements. Each <literal>route</literal>
170 in turn includes one or more filter specifications.
177 The configuration is described in more detail in the
178 <ulink url="&url.metaproxy.doc;">Metaproxy manual</ulink>.
181 <refsect1><title>EXAMPLES</title>
183 The configuration below specifies a simple Z39.50 proxy and
184 illustrates most configuration elements of Metaproxy.
187 <?xml version="1.0"?>
188 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
189 <dlpath>/usr/local/metaproxy/filters</dlpath>
190 <start route="start"/>
192 <filter id="frontend" type="frontend_net">
193 <threads>10</threads>
196 <filter id="backend" type="z3950_client">
197 <timeout>30</timeout>
198 <default_target>z3950.indexdata.dk</default_target>
203 <filter refid="frontend"/>
205 <message>log</message>
207 <filter refid="backend"/>
208 <filter type="bounce"/>
215 Start server with configuration in <filename>my.xml</filename>.
217 metaproxy --config my.xml
222 <refsect1><title>SCHEMA</title>
223 <literallayout><xi:include
224 xi:href="../xml/schema/metaproxy.rnc"
226 xmlns:xi="http://www.w3.org/2001/XInclude" />
230 <refsect1><title>FILES</title>
236 <refsect1><title>SEE ALSO</title>
239 <refentrytitle>auth_simple</refentrytitle>
240 <manvolnum>3mp</manvolnum>
243 <refentrytitle>backend_test</refentrytitle>
244 <manvolnum>3mp</manvolnum>
247 <refentrytitle>bounce</refentrytitle>
248 <manvolnum>3mp</manvolnum>
251 <refentrytitle>frontend_net</refentrytitle>
252 <manvolnum>3mp</manvolnum>
255 <refentrytitle>http_file</refentrytitle>
256 <manvolnum>3mp</manvolnum>
259 <refentrytitle>log</refentrytitle>
260 <manvolnum>3mp</manvolnum>
263 <refentrytitle>multi</refentrytitle>
264 <manvolnum>3mp</manvolnum>
267 <refentrytitle>query_rewrite</refentrytitle>
268 <manvolnum>3mp</manvolnum>
271 <refentrytitle>record_transform</refentrytitle>
272 <manvolnum>3mp</manvolnum>
275 <refentrytitle>session_shared</refentrytitle>
276 <manvolnum>3mp</manvolnum>
279 <refentrytitle>sru_z3950</refentrytitle>
280 <manvolnum>3mp</manvolnum>
283 <refentrytitle>template</refentrytitle>
284 <manvolnum>3mp</manvolnum>
287 <refentrytitle>virt_db</refentrytitle>
288 <manvolnum>3mp</manvolnum>
291 <refentrytitle>z3950_client</refentrytitle>
292 <manvolnum>3mp</manvolnum>
297 <ulink url="&url.metaproxy.doc;">manual</ulink>.
305 <!-- Keep this comment at the end of the file