4 Example opensrf config file for OpenILS
7 <opensrf version='0.0.2'>
12 <log>/openils/var/log</log> <!-- unix::server log files -->
13 <sock>/openils/var/sock</sock> <!-- unix::server sock files -->
14 <pid>/openils/var/pid</pid>
15 <xsl>/openils/var/xsl</xsl>
16 <script>/openils/var</script>
17 <script_lib>/openils/var</script_lib>
20 <IDL>/openils/conf/fm_IDL.xml</IDL> <!-- top level IDL file -->
21 <server_type>prefork</server_type> <!-- net::server type -->
22 <ils_events>/openils/var/data/ils_events.xml</ils_events> <!-- ILS events description file -->
25 <!-- global email notification settings -->
26 <template>/openils/var/data/hold_notification_template.example</template>
27 <smtp_server>localhost</smtp_server>
29 <!-- in most cases, this is overridden by location
30 specific config settings. this is just the default -->
31 <sender_address>evergreen@localhost</sender_address>
37 Settings for the reporter daemon process
40 <base_uri>https://localhost/reporter/</base_uri>
43 <host>localhost</host>
45 <name>evergreen</name>
47 <password>postgres</password>
50 <!-- successful report outputs go here -->
51 <output_base>/openils/var/reporter/output</output_base>
52 <success_template>/openils/var/data/report-success</success_template>
53 <fail_template>/openils/var/data/report-fail</fail_template>
61 <!-- XML-RPC gateway. Do NOT publish unprotected services here -->
63 <!-- list of published services -->
64 <service>opensrf.math</service>
65 <service>opensrf.dbmath</service>
66 <service>open-ils.cat</service>
67 <service>open-ils.search</service>
68 <service>open-ils.circ</service>
69 <service>open-ils.actor</service>
70 <service>open-ils.auth</service>
71 <service>open-ils.collections</service>
77 <default>oclc</default>
80 <!-- Z3950 settings for OCLC. Note that OCLC requires username/password -->
81 <host>zcat.oclc.org</host>
86 These are directly from the Bib-1 Attribute Set
87 http://www.loc.gov/z3950/agency/defns/bib1.html
88 <code> is the "use attribute", <format> is the "structure attribute"
89 This just puts some friendly names on the data.
90 Just copy this chunk to the <attrs> section of <loc> and
91 uncomment the chunk to use the LoC Z server instead
93 <tcn><code>12</code><format>1</format></tcn>
94 <isbn><code>7</code><format>6</format></isbn>
95 <lccn><code>9</code><format>1</format></lccn>
96 <author><code>1003</code><format>6</format></author>
97 <title><code>4</code><format>6</format></title>
98 <issn><code>8</code><format>1</format></issn>
99 <publisher><code>1018</code><format>6</format></publisher>
100 <pubdate><code>31</code><format>1</format></pubdate>
101 <item_type><code>1001</code><format>1</format></item_type>
108 <host>z3950.loc.gov</host>
121 <!-- configure an added content plugin -->
122 <module>OpenILS::WWW::AddedContent::Syndetic</module>
123 <userid>MY_USER_ID</userid>
124 <base_url>http://syndetics.com/index.aspx</base_url>
130 <!-- no apps are enabled globally by default -->
134 <!-- memcache servers -->
137 <server>localhost:11211</server>
139 <max_cache_time>86400</max_cache_time>
144 <!-- Authentication server -->
147 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
148 <keepalive>5</keepalive>
150 <!-- true if this service support stateless requests -->
151 <stateless>1</stateless>
153 <!-- implementation language -->
154 <language>c</language>
156 <!-- library to plugin -->
157 <implementation>oils_auth.so</implementation>
159 <!-- maximum required opensrf requests within a stateful connection -->
160 <max_requests>93</max_requests>
164 <!-- Note that not all implementations use all settings -->
166 <!-- unix sock file -->
167 <unix_sock>open-ils.auth_unix.sock</unix_sock>
170 <unix_pid>open-ils.auth_unix.pid</unix_pid>
172 <!-- maximum number of top level requests coming to
173 this child before the child is recycled -->
174 <max_requests>1000</max_requests>
176 <!-- Perl net::server log -->
177 <unix_log>open-ils.auth_unix.log</unix_log>
178 <!-- min children to fork -->
179 <min_children>1</min_children>
180 <!-- max possible children to fork -->
181 <max_children>15</max_children>
182 <!-- min idle children -->
183 <min_spare_children>1</min_spare_children>
184 <!-- max idle children -->
185 <max_spare_children>5</max_spare_children>
189 <!-- defined app-specific settings here -->
191 <!-- default login timeouts based on login type -->
200 <!-- Generic search server -->
202 <keepalive>5</keepalive>
203 <stateless>1</stateless>
204 <language>perl</language>
205 <implementation>OpenILS::Application::Search</implementation>
206 <max_requests>93</max_requests>
208 <unix_sock>open-ils.search_unix.sock</unix_sock>
209 <unix_pid>open-ils.search_unix.pid</unix_pid>
210 <max_requests>1000</max_requests>
211 <unix_log>open-ils.search_unix.log</unix_log>
212 <min_children>1</min_children>
213 <max_children>15</max_children>
214 <min_spare_children>1</min_spare_children>
215 <max_spare_children>5</max_spare_children>
218 <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
219 <!-- zip code database file -->
220 <!--<zips_file>/openils/var/data/zips.txt</zips_file>-->
224 <!-- server for accessing user info -->
226 <keepalive>5</keepalive>
227 <stateless>1</stateless>
228 <language>perl</language>
229 <implementation>OpenILS::Application::Actor</implementation>
230 <max_requests>93</max_requests>
232 <unix_sock>open-ils.actor_unix.sock</unix_sock>
233 <unix_pid>open-ils.actor_unix.pid</unix_pid>
234 <max_requests>1000</max_requests>
235 <unix_log>open-ils.actor_unix.log</unix_log>
236 <min_children>1</min_children>
237 <max_children>15</max_children>
238 <min_spare_children>1</min_spare_children>
239 <max_spare_children>5</max_spare_children>
245 <keepalive>5</keepalive>
246 <stateless>1</stateless>
247 <language>perl</language>
248 <implementation>OpenILS::Application::Cat</implementation>
249 <max_requests>199</max_requests>
251 <unix_sock>open-ils.cat_unix.sock</unix_sock>
252 <unix_pid>open-ils.cat_unix.pid</unix_pid>
253 <max_requests>1000</max_requests>
254 <unix_log>open-ils.cat_unix.log</unix_log>
255 <min_children>1</min_children>
256 <max_children>15</max_children>
257 <min_spare_children>1</min_spare_children>
258 <max_spare_children>5</max_spare_children>
262 <K_book>/openils/var/templates/marc/k_book.xml</K_book>
268 <keepalive>5</keepalive>
269 <stateless>1</stateless>
270 <language>perl</language>
271 <implementation>OpenILS::Application::SuperCat</implementation>
272 <max_requests>199</max_requests>
274 <unix_sock>open-ils.supercat_unix.sock</unix_sock>
275 <unix_pid>open-ils.supercat_unix.pid</unix_pid>
276 <max_requests>1000</max_requests>
277 <unix_log>open-ils.supercat_unix.log</unix_log>
278 <min_children>1</min_children>
279 <max_children>15</max_children>
280 <min_spare_children>1</min_spare_children>
281 <max_spare_children>5</max_spare_children>
287 <keepalive>3</keepalive>
288 <stateless>1</stateless>
289 <language>c</language>
290 <implementation>osrf_math.so</implementation>
291 <max_requests>97</max_requests>
293 <unix_sock>opensrf.math_unix.sock</unix_sock>
294 <unix_pid>opensrf.math_unix.pid</unix_pid>
295 <max_requests>1000</max_requests>
296 <unix_log>opensrf.math_unix.log</unix_log>
297 <min_children>1</min_children>
298 <max_children>15</max_children>
299 <min_spare_children>1</min_spare_children>
300 <max_spare_children>5</max_spare_children>
305 <keepalive>3</keepalive>
306 <stateless>1</stateless>
307 <language>c</language>
308 <implementation>osrf_dbmath.so</implementation>
309 <max_requests>99</max_requests>
311 <max_requests>1000</max_requests>
312 <unix_log>opensrf.dbmath_unix.log</unix_log>
313 <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
314 <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
315 <min_children>1</min_children>
316 <max_children>15</max_children>
317 <min_spare_children>1</min_spare_children>
318 <max_spare_children>5</max_spare_children>
323 <keepalive>3</keepalive>
324 <stateless>1</stateless>
325 <language>perl</language>
326 <implementation>OpenILS::Application::Penalty</implementation>
327 <max_requests>99</max_requests>
329 <max_requests>1000</max_requests>
330 <unix_log>open-ils.penalty_unix.log</unix_log>
331 <unix_sock>open-ils.penalty_unix.sock</unix_sock>
332 <unix_pid>open-ils.penalty_unix.pid</unix_pid>
333 <min_children>1</min_children>
334 <max_children>15</max_children>
335 <min_spare_children>1</min_spare_children>
336 <max_spare_children>5</max_spare_children>
339 <patron_penalty>penalty/patron_penalty.js</patron_penalty>
340 <script_path>/openils/var</script_path>
341 <script_path>/openils/var/catalog</script_path>
346 <keepalive>3</keepalive>
347 <stateless>1</stateless>
348 <language>perl</language>
349 <implementation>OpenILS::Application::Circ</implementation>
350 <max_requests>99</max_requests>
352 <max_requests>1000</max_requests>
353 <unix_log>open-ils.circ_unix.log</unix_log>
354 <unix_sock>open-ils.circ_unix.sock</unix_sock>
355 <unix_pid>open-ils.circ_unix.pid</unix_pid>
356 <min_children>1</min_children>
357 <max_children>15</max_children>
358 <min_spare_children>1</min_spare_children>
359 <max_spare_children>5</max_spare_children>
363 <email>false</email> <!-- set to true for hold notice emails -->
366 <!-- circulation policy scripts -->
367 <script_path>/openils/var</script_path>
368 <script_path>/openils/var/catalog</script_path>
370 <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
371 <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
372 <circ_duration>circ/circ_duration.js</circ_duration>
373 <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
374 <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
375 <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
376 <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
385 <mod>bestseller</mod>
386 <mod>bestsellernh</mod>
401 <mod>softwrlong</mod>
402 <mod>equip-long</mod>
403 <mod>talking book</mod>
406 <mod>video-long</mod>
410 <type>Miscellaneous</type>
411 <type>Overdue materials</type>
412 <type>Fee for placing a hold</type>
413 <type>Fee for checking out a book</type>
414 <type>Fee for library card</type>
415 <type>Miscellaneous charges</type>
416 <type>Lost materials</type>
417 <type>Damaged material</type>
418 <type>Overdue Reserves charge</type>
419 <type>Recall overdue</type>
420 <type>Fee for processing lost library materials</type>
421 <type>Fee for sending patron bills to collection agency</type>
422 <type>Fee for interlibrary loan</type>
423 <type>Fee for copies</type>
424 <type>Money advanced to pay for telephone use</type>
425 <type>Deposit fee</type>
426 <type>Fee for disk</type>
427 <type>Fee for faxing</type>
428 <type>Fee for laminating</type>
429 <type>Fee for room cleaning</type>
430 <type>Deposit returned; fee refund</type>
431 <type>Sale items</type>
432 <type>Fee for lost card</type>
433 <type>Long overdue items</type>
434 <type>Lost/Replacement Cassette</type>
435 <type>Returned Check</type>
441 <keepalive>3</keepalive>
442 <stateless>1</stateless>
443 <implementation>OpenILS::Application::Ingest</implementation>
444 <language>perl</language>
445 <max_requests>1000000</max_requests>
447 <max_requests>1000000</max_requests>
448 <unix_log>open-ils.ingest-unix.log</unix_log>
449 <unix_sock>open-ils.ingest-unix.sock</unix_sock>
450 <unix_pid>open-ils.ingest-unix.pid</unix_pid>
451 <min_children>5</min_children>
452 <max_children>20</max_children>
453 <min_spare_children>2</min_spare_children>
454 <max_spare_children>5</max_spare_children>
457 <script_path>/openils/var/catalog/</script_path>
458 <script_path>/openils/var/web/opac/common/js/</script_path>
460 <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
461 <biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
467 <keepalive>10</keepalive>
468 <stateless>1</stateless>
469 <language>perl</language>
470 <implementation>OpenILS::Application::Storage</implementation>
472 <max_requests>1000</max_requests>
473 <unix_log>storage_unix.log</unix_log>
474 <unix_sock>storage_unix.sock</unix_sock>
475 <unix_pid>storage_unix.pid</unix_pid>
476 <max_requests>400</max_requests>
477 <min_children>1</min_children>
478 <max_children>10</max_children>
479 <min_spare_children>1</min_spare_children>
480 <max_spare_children>5</max_spare_children>
483 <script_path>/openils/var/catalog/</script_path>
485 <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
492 <user>postgres</user>
493 <host>localhost</host>
497 <client_encoding>UTF-8</client_encoding>
505 <keepalive>6</keepalive>
506 <stateless>1</stateless>
507 <language>C</language>
508 <implementation>oils_cstore.so</implementation>
509 <max_requests>95</max_requests>
511 <unix_log>cstore.log</unix_log>
512 <unix_sock>cstore.sock</unix_sock>
513 <unix_pid>cstore.pid</unix_pid>
514 <max_requests>400</max_requests>
515 <min_children>1</min_children>
516 <max_children>15</max_children>
517 <min_spare_children>1</min_spare_children>
518 <max_spare_children>5</max_spare_children>
521 <IDL>/openils/conf/fm_IDL.xml</IDL> <!-- deprecated with 1.1.0-->
522 <driver>pgsql</driver>
526 <user>postgres</user>
527 <host>localhost</host>
531 <client_encoding>UTF-8</client_encoding>
539 <keepalive>1</keepalive>
540 <stateless>1</stateless>
541 <language>perl</language>
542 <implementation>OpenSRF::Application::Settings</implementation>
543 <max_requests>17</max_requests>
545 <unix_sock>opensrf.settings_unix.sock</unix_sock>
546 <unix_pid>opoensrf.settings_unix.pid</unix_pid>
547 <max_requests>300</max_requests>
548 <unix_log>opensrf.settings_unix.log</unix_log>
549 <min_children>5</min_children>
550 <max_children>15</max_children>
551 <min_spare_children>3</min_spare_children>
552 <max_spare_children>5</max_spare_children>
556 <open-ils.collections>
557 <keepalive>3</keepalive>
558 <stateless>1</stateless>
559 <language>perl</language>
560 <implementation>OpenILS::Application::Collections</implementation>
561 <max_requests>17</max_requests>
563 <unix_sock>opensrf.collections_unix.sock</unix_sock>
564 <unix_pid>opoensrf.collections_unix.pid</unix_pid>
565 <max_requests>1000</max_requests>
566 <unix_log>opensrf.collections_unix.log</unix_log>
567 <min_children>1</min_children>
568 <max_children>10</max_children>
569 <min_spare_children>1</min_spare_children>
570 <max_spare_children>5</max_spare_children>
572 </open-ils.collections>
575 <keepalive>3</keepalive>
576 <stateless>1</stateless>
577 <language>perl</language>
578 <implementation>OpenILS::Application::Reporter</implementation>
579 <max_requests>99</max_requests>
581 <unix_sock>opensrf.reporter_unix.sock</unix_sock>
582 <unix_pid>opoensrf.reporter_unix.pid</unix_pid>
583 <max_requests>1000</max_requests>
584 <unix_log>opensrf.reporter_unix.log</unix_log>
585 <min_children>1</min_children>
586 <max_children>10</max_children>
587 <min_spare_children>1</min_spare_children>
588 <max_spare_children>5</max_spare_children>
593 <open-ils.reporter-store>
594 <keepalive>6</keepalive>
595 <stateless>1</stateless>
596 <language>C</language>
597 <implementation>oils_rstore.so</implementation>
598 <max_requests>95</max_requests>
600 <unix_log>rstore.log</unix_log>
601 <unix_sock>rstore.sock</unix_sock>
602 <unix_pid>rstore.pid</unix_pid>
603 <max_requests>400</max_requests>
604 <min_children>1</min_children>
605 <max_children>10</max_children>
606 <min_spare_children>1</min_spare_children>
607 <max_spare_children>5</max_spare_children>
610 <IDL>/openils/conf/fm_IDL.xml</IDL> <!-- deprecated with 1.1.0 -->
611 <driver>pgsql</driver>
615 <user>postgres</user>
616 <host>localhost</host>
620 <client_encoding>UTF-8</client_encoding>
623 </open-ils.reporter-store>
632 <!-- ^-=- must match the fully qualified domain name of the host
633 on Linux, this is usually the output of "hostname -f"
637 <!-- services hosted on this machine -->
638 <appname>opensrf.settings</appname>
639 <appname>opensrf.math</appname>
640 <appname>opensrf.dbmath</appname>
641 <appname>open-ils.cat</appname>
642 <appname>open-ils.supercat</appname>
643 <appname>open-ils.search</appname>
644 <appname>open-ils.circ</appname>
645 <appname>open-ils.actor</appname>
646 <appname>open-ils.auth</appname>
647 <appname>open-ils.storage</appname>
648 <appname>open-ils.penalty</appname>
649 <appname>open-ils.cstore</appname>
650 <appname>open-ils.collections</appname>
651 <appname>open-ils.ingest</appname>
652 <appname>open-ils.reporter</appname>
653 <appname>open-ils.reporter-store</appname>