Add check of configuration (-t).
[pazpar2-moved-to-github.git] / doc / pazpar2.xml
1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
2  "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd"
3 [
4      <!ENTITY % local SYSTEM "local.ent">
5      %local;
6      <!ENTITY % entities SYSTEM "entities.ent">
7      %entities;
8      <!ENTITY % idcommon SYSTEM "common/common.ent">
9      %idcommon;
10 ]>
11 <refentry id="pazpar2">
12  <refentryinfo>
13   <productname>Pazpar2</productname>
14   <productnumber>&version;</productnumber>
15  </refentryinfo>
16  <refmeta>
17   <refentrytitle>Pazpar2</refentrytitle>
18   <manvolnum>8</manvolnum>
19  </refmeta>
20  
21  <refnamediv>
22   <refname>pazpar2</refname>
23   <refpurpose>Metasearch daemon.</refpurpose>
24  </refnamediv>
25  
26  <refsynopsisdiv>
27   <cmdsynopsis>
28    <command>pazpar2</command>
29    <arg choice="opt"><option>-d</option></arg>
30    <arg choice="opt"><option>-D</option></arg>
31    <arg choice="opt"><option>-f <replaceable>config</replaceable></option></arg>
32    <arg choice="opt"><option>-h <replaceable>ip:port</replaceable></option></arg>
33    <arg choice="opt"><option>-l <replaceable>logfile</replaceable></option></arg>
34    <arg choice="opt"><option>-p <replaceable>pidfile</replaceable></option></arg>
35    <arg choice="opt"><option>-t</option></arg>
36    <arg choice="opt"><option>-T <replaceable>session_timeout</replaceable></option></arg>
37    <arg choice="opt"><option>-u <replaceable>uid</replaceable></option></arg>
38    <arg choice="opt"><option>-V</option></arg>
39    <arg choice="opt"><option>-X</option></arg>
40    <arg choice="opt"><option>-install</option></arg>
41    <arg choice="opt"><option>-remove</option></arg>
42   </cmdsynopsis>
43  </refsynopsisdiv>
44  
45  <refsect1><title>DESCRIPTION</title>
46   <para><command>pazpar2</command> is the Pazpar2 Metasearch daemon
47    and server.
48    In normal operation it acts as a simple HTTP server which serves
49    the Pazpar2 protocol.
50    The HTTP listener address may be given on the command line using
51    option <option>-h</option> or in the main configuration
52    file. The main configuration must be specified using option
53    <option>-f</option>.
54   </para>
55  </refsect1>
56  
57  <refsect1><title>OPTIONS</title>
58   <para></para>
59   
60   <variablelist>
61    <varlistentry>
62     <term><option>-d</option></term>
63     <listitem>
64      <para>
65       Enables dump of XML records to the current log file.
66       It is useful if stylesheets are being debugged.
67      </para>
68     </listitem>
69    </varlistentry>
70    <varlistentry>
71     <term><option>-D</option></term>
72     <listitem>
73      <para>Puts the Pazpar2 server in the background.</para>
74     </listitem>
75    </varlistentry>
76    <varlistentry>
77     <term><option>-f <replaceable>config</replaceable></option></term>
78     <listitem>
79      <para>
80       Specifies main configuration. This option must be specified
81       in order for Pazpar2 to operate normally.
82      </para>
83     </listitem>
84    </varlistentry>
85    <varlistentry>
86     <term><option>-h <replaceable>ip:port</replaceable></option></term>
87     <listitem>
88      <para>
89       Specifies the HTTP listener binding address.
90       The <replaceable>ip</replaceable>
91       may be a hostname or <literal>@</literal> for "any" address.
92       The <replaceable>port</replaceable> is an integer.
93      </para>
94     </listitem>
95    </varlistentry>
96    <varlistentry>
97     <term><option>-l <replaceable>logfile</replaceable></option></term>
98     <listitem>
99      <para>
100       Specifies log file. The log file must be specified when Pazpar2
101       is running in the background (-D).
102      </para>
103     </listitem>
104    </varlistentry>
105    <varlistentry>
106     <term><option>-p <replaceable>pidfile</replaceable></option></term>
107     <listitem>
108      <para>
109       Specifies PID file. If Pazpar2 is started and configured properly
110       the file given holds the process ID of the Pazpar2 process.
111      </para>
112     </listitem>
113    </varlistentry>
114
115    <varlistentry>
116     <term><option>-t</option></term>
117     <listitem>
118      <para>
119       Checks parameters and configuration. No service or daemon is
120       started. Useful for checking a new configuration before a
121       Pazpar2 is restarted.
122      </para>
123      <note>
124       <para>
125        In Pazpar2 1.2 and earlier releasese, option -t specified a
126        local target settings file.
127       </para>
128      </note>
129     </listitem>
130    </varlistentry>
131
132    <varlistentry>
133     <term><option>-T <replaceable>session_timeout</replaceable></option></term>
134     <listitem>
135      <para>
136       Specifies a Pazpar2 HTTP session timeout. This
137       overrides the default value of 60 seconds which is to low for some broken browser.
138      </para>
139     </listitem>
140    </varlistentry>
141
142    <varlistentry>
143     <term><option>-u <replaceable>uid</replaceable></option></term>
144     <listitem>
145      <para>
146       Makes the Pazpar2 server change user ID to the
147       <replaceable>uid</replaceable> given.
148       This, normally, requires root privilege.
149      </para>
150     </listitem>
151    </varlistentry>
152
153    <varlistentry>
154     <term><option>-V</option></term>
155     <listitem>
156      <para>
157       Shows Pazpar2 version and versions of some of the components that it
158       is using (ICU and YAZ). Pazpar2 will not exit immediately after
159       displaying the version information (no daemon started).
160      </para>
161     </listitem>
162    </varlistentry>
163
164    <varlistentry>
165     <term><option>-X</option></term>
166     <listitem>
167      <para>
168       Makes the Pazpar2 server operate in debugging mode.
169       This prevents Pazpar2 from making separate threads and processes.
170       This option should not be used in production.
171      </para>
172     </listitem>
173    </varlistentry>
174
175    <varlistentry>
176     <term><option>-install</option></term>
177     <listitem>
178      <para>
179        This is an option which is only recognized on Windows. It installs
180        Pazpar2 as a Windows Service.
181      </para>
182      <note>
183        <para>
184          Pazpar2 only supports Windows Service options if Pazpar2 is
185          linked against YAZ 3.0.29 or later.
186        </para>
187      </note>
188     </listitem>
189    </varlistentry>
190
191    <varlistentry>
192     <term><option>-remove</option></term>
193     <listitem>
194      <para>
195        This is an option which is only recognized on Windows. It removes
196        a Pazpar2 - Windows Service.
197      </para>
198     </listitem>
199    </varlistentry>
200
201   </variablelist>
202   
203  </refsect1>
204  
205  <refsect1><title>EXAMPLES</title>
206   <para>The Debian package of pazpar2 starts the server with:
207    <screen>
208     pazpar2 -D -f /etc/pazpar2/pazpar2.cfg -l /var/log/pazpar2.log -p /var/run/pazpar2.pid -u nobody
209    </screen>
210    (one line). 
211   </para>
212   <para>
213    This will put pazpar2 in the background (-D), read config from from
214    <filename>/etc/pazpar2/pazpar2.cfg</filename>, log messages to
215    <filename>/var/log/pazpar2.log</filename>, create PID file
216    <filename>/var/run/pazpar2.pid</filename>. When the daemon is properly
217    started, the server will change effective user ID to nobody.
218   </para>
219   <para>
220    The server can be terminated with:
221    <screen>
222     kill `cat /var/run/pazpar2.pid`
223    </screen>
224   </para>
225   <para>
226    If Pazpar2 is to be debugged using GDB, we use option -X:
227    <screen>
228     cd pazpar2/src
229     gdb ./pazpar2
230     (gdb) run -X -f ../etc/pazpar2.cfg
231    </screen>
232   </para>
233  </refsect1> 
234  
235  <refsect1><title>FILES</title>
236   <para><filename>/usr/sbin/pazpar2</filename>: pazpar2 daemon</para>
237
238   <para><filename>/usr/share/pazpar2</filename>: pazpar2 shared files</para>
239
240   <para><filename>/etc/pazpar2</filename>: pazpar2 config area</para>
241  </refsect1>
242  
243  <refsect1><title>SEE ALSO</title>
244   <para>
245    Pazpar2 configuration:
246    <citerefentry>
247     <refentrytitle>pazpar2_conf</refentrytitle>
248     <manvolnum>5</manvolnum>
249    </citerefentry>
250   </para>
251   <para>
252    Pazpar2 protocol:
253    <citerefentry>
254     <refentrytitle>pazpar2_protocol</refentrytitle>
255     <manvolnum>7</manvolnum>
256    </citerefentry>
257   </para>
258  </refsect1>
259
260 </refentry>
261
262
263 <!-- Keep this comment at the end of the file
264 Local variables:
265 mode: sgml
266 sgml-omittag:t
267 sgml-shorttag:t
268 sgml-minimize-attributes:nil
269 sgml-always-quote-attributes:t
270 sgml-indent-step:1
271 sgml-indent-data:t
272 sgml-parent-document:nil
273 sgml-local-catalogs: nil
274 sgml-namecase-general:t
275 End:
276 -->