]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/opensrf.xml.example
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[Evergreen.git] / Open-ILS / examples / opensrf.xml.example
1 <?xml version='1.0'?>
2
3 <!-- 
4 Example opensrf config file for OpenILS
5 vim:et:ts=4:sw=4:
6 -->
7
8 <opensrf version='0.0.3'>
9
10     <default>
11
12         <!-- unless otherwise overidden, use this locale -->
13         <default_locale>en-US</default_locale>
14
15         <dirs>
16             <log>LOCALSTATEDIR/log</log> <!-- unix::server log files -->
17             <sock>LOCALSTATEDIR/lock</sock> <!-- unix::server sock files -->
18             <pid>LOCALSTATEDIR/run</pid>
19             <xsl>LOCALSTATEDIR/xsl</xsl>
20             <script>LOCALSTATEDIR</script>
21             <script_lib>LOCALSTATEDIR</script_lib>
22             <templates>LOCALSTATEDIR/templates</templates>
23         </dirs>
24
25         <!-- global data visibility settings -->
26         <share>
27             <user>
28                 <!-- Set to "true" to require patron opt-in for foreign (non-home_ou) transactions -->
29                 <opt_in>false</opt_in>
30             </user>
31         </share>
32
33         <IDL>SYSCONFDIR/fm_IDL.xml</IDL> <!-- top level IDL file -->
34         <IDL2js>fm_IDL2js.xsl</IDL2js> <!-- IDL JS XSLT -->
35
36
37         <server_type>prefork</server_type> <!-- net::server type -->
38
39         <ils_events>LOCALSTATEDIR/data/ils_events.xml</ils_events> <!-- ILS events description file -->
40
41         <email_notify> <!-- this will eventually move into the notifications section below... -->
42             <!-- global email notification settings -->
43             <template>LOCALSTATEDIR/data/hold_notification_template.example</template>
44             <smtp_server>localhost</smtp_server>
45
46             <!--
47             in most cases, this is overridden by location 
48             specific config settings.  this is just the default
49             -->
50             <sender_address>evergreen@localhost</sender_address>
51         </email_notify>
52
53
54       <notifications>
55         <!-- global mail server settings -->
56         <smtp_server>localhost</smtp_server>
57         <sender_address>evergreen@localhost</sender_address>
58
59         <!-- global telephony (asterisk) settings -->
60         <telephony>
61             <!-- replace all values below when telephony server is configured -->
62             <enabled>0</enabled>
63             <driver>SIP</driver>    <!-- SIP (default) or multi -->
64             <channels>              <!-- explicit list of channels used if multi -->
65                                     <!-- A channel specifies technology/resource -->
66                 <channel>Zap/1</channel>
67                 <channel>Zap/2</channel>
68                 <channel>IAX/user:secret@widgets.biz</channel>
69             </channels>
70             <host>localhost</host>
71             <port>10080</port>
72             <user>evergreen</user>
73             <pw>evergreen</pw>
74             <!--
75                 The overall composition of callfiles is determined by the
76                 relevant template, but this section can be invoked for callfile
77                 configs common to all outbound calls.
78                 callfile_lines will be inserted into ALL generated callfiles
79                 after the Channel line.  This content mat be overridden
80                 (in whole) by the org unit setting callfile_lines.
81                 Warning: Invalid syntax may break ALL outbound calls.
82             -->
83             <!-- <callfile_lines>
84                 MaxRetries: 3
85                 RetryTime: 60
86                 WaitTime: 30
87                 Archive: 1
88                 Extension: 10
89             </callfile_lines> -->
90         </telephony>
91
92         <!-- Overdue notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
93         <overdue>
94
95             <!-- optionally, you can define a sender address per notice type -->
96             <sender_address>overdue@localhost</sender_address>
97
98             <!-- The system can generate an XML file of overdue notices.  This is the
99                 directory where they are stored.  Files are named overdue.YYYY-MM-DD.xml -->
100             <notice_dir>LOCALSTATEDIR/data/overdue</notice_dir>
101             <combined_template>LOCALSTATEDIR/data/templates/overdue_combined_xml.example</combined_template>
102
103             <notice>
104                 <!-- Notify at 7 days overdue -->
105                 <notify_interval>7 days</notify_interval>
106                 <!-- Options include always, noemail, and never.  'noemail' means a notice
107                      will be appended to the notice file only if the patron has no valid email address.  -->
108                 <file_append>noemail</file_append>
109                 <!-- do we attempt email notification? -->
110                 <email_notify>false</email_notify>
111                 <!-- notice template file -->
112                 <email_template>LOCALSTATEDIR/data/templates/overdue_7day.example</email_template>
113             </notice>
114         </overdue>
115
116         <!-- Courtesy notices: DEPRECATED in 2.0 in favour of Action/Trigger Notifications -->
117         <predue>
118             <notice>
119                 <!-- All circulations that circulate between 5 and 13 days -->
120                 <circ_duration_range>
121                     <from>5 days</from>
122                     <to>13 days</to>
123                 </circ_duration_range>
124                 <!-- notify at 1 day before the due date -->
125                 <notify_interval>1 day</notify_interval>
126                 <file_append>false</file_append>
127                 <email_notify>false</email_notify>
128                 <email_template>LOCALSTATEDIR/data/templates/predue_1day.example</email_template>
129             </notice>
130         </predue>
131       </notifications>
132
133         <!-- Settings for the hold targeter cron job -->
134         <hold_targeter>
135             <!-- number of parallel processes to use during hold targeting;
136                  increasing can speed up (re)targeting a large number of
137                  hold requests, but with diminishing returns after a point;
138                  if increasing this value, it is recommend to do so slowly
139             -->
140             <parallel>1</parallel>
141         </hold_targeter>
142
143         <!-- Settings for the fine generator cron job -->
144         <fine_generator>
145             <!-- number of parallel processes to use during fine generation -->
146             <parallel>1</parallel>
147         </fine_generator>
148         
149         <reporter>
150             <!--
151             Settings for the reporter daemon process 
152             -->
153             <setup>
154                 <base_uri>https://localhost/reporter/</base_uri>
155                 <database>
156                     <driver>Pg</driver>
157                     <host>localhost</host>
158                     <port>5432</port>
159                     <db>evergreen</db>
160                     <user>postgres</user>
161                     <pw>postgres</pw>
162                 </database>
163                 <state_store>
164                     <driver>Pg</driver>
165                     <host>localhost</host>
166                     <port>5432</port>
167                     <db>evergreen</db>
168                     <user>postgres</user>
169                     <pw>postgres</pw>
170                 </state_store>
171                 <files>
172                     <!-- successful report outputs go here -->
173                     <output_base>LOCALSTATEDIR/web/reporter</output_base>
174                     <success_template>LOCALSTATEDIR/data/report-success</success_template>
175                     <fail_template>LOCALSTATEDIR/data/report-fail</fail_template>
176                 </files>
177             </setup>
178         </reporter>
179
180
181
182         <xml-rpc>
183             <!-- XML-RPC gateway.  Do NOT publish unprotected services here -->
184             <allowed_services>
185                 <!-- list of published services -->
186                 <service>opensrf.math</service>
187                 <service>opensrf.dbmath</service>
188                 <service>open-ils.cat</service>
189                 <service>open-ils.search</service>
190                 <service>open-ils.circ</service>
191                 <service>open-ils.actor</service>
192                 <service>open-ils.auth</service>
193                 <service>open-ils.collections</service>
194             </allowed_services>
195         </xml-rpc>
196
197
198         <z3950>
199             <default>biblios</default>
200             <services>
201                 <biblios>
202                     <!-- biblios does not require username/password -->
203                     <name>‡biblios.net</name>
204                     <host>z3950.biblios.net</host>
205                     <port>210</port>
206                     <db>bibliographic</db>
207                     <!-- fetch the full record with no holdings. FI is the most common choice -->
208                     <record_format>FI</record_format> 
209
210                     <!-- Record transmission format from the server.  Supported -->
211                     <!-- formats include usmarc and xml (for marcxml).         -->
212                     <transmission_format>usmarc</transmission_format> 
213
214                     <attrs>
215                         <tcn><code>12</code><format>1</format></tcn>
216                         <isbn><code>7</code><format>6</format></isbn>
217                         <lccn><code>9</code><format>1</format></lccn>
218                         <author><code>1003</code><format>6</format></author>
219                         <title><code>4</code><format>6</format></title>
220                         <issn><code>8</code><format>1</format></issn>
221                         <publisher><code>1018</code><format>6</format></publisher>
222                         <pubdate><code>31</code><format>1</format></pubdate>
223                         <item_type><code>1001</code><format>1</format></item_type>
224                     </attrs>
225                 </biblios>
226
227                 <loc>
228                     <!-- LoC does not require username/password -->
229                     <name>loc</name>
230                     <host>z3950.loc.gov</host>
231                     <port>7090</port>
232                     <db>Voyager</db>
233                     <!-- fetch the full record with no holdings. FI is the most common choice -->
234                     <record_format>FI</record_format> 
235
236                     <!-- Record transmission format from the server.  Supported -->
237                     <!-- formats include usmarc and xml (for marcxml).         -->
238                     <transmission_format>usmarc</transmission_format> 
239
240                     <attrs>
241                         <tcn><code>12</code><format>1</format></tcn>
242                         <isbn><code>7</code><format>6</format></isbn>
243                         <lccn><code>9</code><format>1</format></lccn>
244                         <author><code>1003</code><format>6</format></author>
245                         <title><code>4</code><format>6</format></title>
246                         <issn><code>8</code><format>1</format></issn>
247                         <publisher><code>1018</code><format>6</format></publisher>
248                         <pubdate><code>31</code><format>1</format></pubdate>
249                         <item_type><code>1001</code><format>1</format></item_type>
250                     </attrs>
251                 </loc>
252
253                 <oclc>
254                     <!-- Z3950 settings for OCLC.  Note that OCLC requires username/password -->
255                     <host>zcat.oclc.org</host>
256                     <port>210</port>
257                     <db>OLUCWorldCat</db>
258                     <attrs>
259                         <!--
260                         These are directly from the Bib-1 Attribute Set
261                         http://www.loc.gov/z3950/agency/defns/bib1.html
262                         <code> is the "use attribute", <format> is the "structure attribute"
263                         This just puts some friendly names on the data.
264                         -->
265                         <tcn><code>12</code><format>1</format></tcn>
266                         <isbn><code>7</code><format>6</format></isbn>
267                         <lccn><code>9</code><format>1</format></lccn>
268                         <author><code>1003</code><format>6</format></author>
269                         <title><code>4</code><format>6</format></title>
270                         <issn><code>8</code><format>1</format></issn>
271                         <publisher><code>1018</code><format>6</format></publisher>
272                         <pubdate><code>31</code><format>1</format></pubdate>
273                         <item_type><code>1001</code><format>1</format></item_type>
274                     </attrs>
275                 </oclc>
276
277             </services>
278         </z3950>
279
280
281         <added_content>
282
283             <!-- load the OpenLibrary added content module -->
284             <module>OpenILS::WWW::AddedContent::OpenLibrary</module>
285
286             <!--
287             Max number of seconds to wait for an added content request to 
288             return data.  Data not returned within the timeout is considered
289             a failure
290             -->
291             <timeout>30</timeout>
292
293             <!--
294             After added content lookups have been disabled due to too many
295             lookup failures, this is the amount of time to wait before
296             we try again
297             -->
298             <retry_timeout>600</retry_timeout>
299
300             <!--
301             maximum number of consecutive lookup errors a given process can 
302             have before added content lookups are disabled for everyone
303             -->
304             <max_errors>15</max_errors>
305
306             <!-- If a userid is required to access the added content.. -->
307             <userid>MY_USER_ID</userid>
308
309             <!--
310             Base URL for Amazon added content fetching. Not needed by OpenLibrary
311             <base_url>http://images.amazon.com/images/P/</base_url>
312             -->
313
314             <!--
315             Segregating the details for ContentCafe out for easier use.  At some point, we
316             may want to support multiple services at one time.
317             -->
318             <ContentCafe>
319                 <userid>MY_USER_ID</userid>
320                 <password>MY_PASSWORD</password>
321
322                 <!--
323                 If no cover/jacket image exists for a given ISBN, then a value of T here will
324                 return an 80x120 pixel image containing the text "No Image Available".  A
325                 value of 1 will return a 1x1 pixel image.
326                 -->
327                 <return_behavior_on_no_jacket_image>T</return_behavior_on_no_jacket_image>
328             </ContentCafe>
329
330             <!--
331  
332             You can add free-form settings here and they will be accessible
333             within the added content module
334             -->
335
336         </added_content>
337
338         <!-- no apps are enabled globally by default -->
339         <activeapps/> 
340
341         <cache>
342             <!-- memcache servers -->
343             <global>
344                 <servers>
345                     <server>127.0.0.1:11211</server>
346                 </servers>
347                 <max_cache_time>86400</max_cache_time>
348             </global>
349             <anon>
350                 <!-- anonymous cache.  currently, primarily used for web session caching -->
351                 <servers>
352                     <server>127.0.0.1:11211</server>
353                 </servers>
354                 <max_cache_time>1800</max_cache_time>
355                 <!-- maximum size of a single cache entry / default = 100k-->
356                 <max_cache_size>102400</max_cache_size>
357             </anon>
358         </cache>
359
360         <apps>
361             <!-- Acquisitions server -->
362             <open-ils.acq>
363                 <!-- how long to wait between stateful requests before the child process re-joins the pool -->
364                 <keepalive>5</keepalive>
365                 <!-- true if this service support stateless requests -->
366                 <stateless>1</stateless>
367                 <!-- implementation language -->
368                 <language>perl</language>
369                 <!-- name of the library that implements this application -->
370                 <implementation>OpenILS::Application::Acq</implementation>
371                 <!-- maximum OpenSRF REQUEST within a stateful connection -->
372                 <max_requests>100</max_requests>
373                 <unix_config>
374                     <!--
375                     maximum number of top level requests coming to 
376                     this child before the child is recycled
377                     -->
378                     <max_requests>100</max_requests>
379                     <!-- min children to fork -->
380                     <min_children>1</min_children>
381                     <!-- max possible children to fork -->
382                     <max_children>15</max_children>
383                     <!--
384                     C forking implementation does not support 
385                     min/max idle children, but may in the future
386                     -->
387
388                     <!-- min idle children -->
389                     <min_spare_children>1</min_spare_children>
390                     <!-- max idle children -->
391                     <max_spare_children>5</max_spare_children>
392                     <!-- currently, only Perl uses the following 3 settings -->
393                     <unix_sock>open-ils.acq_unix.sock</unix_sock>
394                     <unix_pid>open-ils.acq_unix.pid</unix_pid>
395                     <unix_log>open-ils.acq_unix.log</unix_log>
396                 </unix_config>
397             </open-ils.acq>
398
399             <!-- Authentication server -->
400             <open-ils.auth>
401                 <keepalive>5</keepalive>
402                 <stateless>1</stateless>
403                 <language>c</language>
404                 <implementation>oils_auth.so</implementation>
405                 <unix_config>
406                     <max_requests>1000</max_requests>
407                     <min_children>1</min_children>
408                     <max_children>15</max_children>
409                     <min_spare_children>1</min_spare_children>
410                     <max_spare_children>5</max_spare_children>
411                 </unix_config>
412                 <app_settings>
413                     <!-- defined app-specific settings here -->
414                     <default_timeout>
415                         <!-- default login timeouts based on login type -->
416                         <opac>420</opac>
417                         <staff>7200</staff>
418                         <temp>300</temp>
419                         <persist>2 weeks</persist>
420                     </default_timeout>
421                 </app_settings>
422             </open-ils.auth>
423
424             <!-- Generic search server -->
425             <open-ils.search>
426                 <keepalive>5</keepalive>
427                 <stateless>1</stateless>
428                 <language>perl</language>
429                 <implementation>OpenILS::Application::Search</implementation>
430                 <max_requests>93</max_requests>
431                 <unix_config>
432                     <unix_sock>open-ils.search_unix.sock</unix_sock>
433                     <unix_pid>open-ils.search_unix.pid</unix_pid>
434                     <unix_log>open-ils.search_unix.log</unix_log>
435
436                     <max_requests>1000</max_requests>
437                     <min_children>1</min_children>
438                     <max_children>15</max_children>
439                     <min_spare_children>1</min_spare_children>
440                     <max_spare_children>5</max_spare_children>
441                 </unix_config>
442                 <app_settings>
443                     <marc_html_xsl>oilsMARC21slim2HTML.xsl</marc_html_xsl>
444                     <marc_html_xsl_slim>oilsMARC21slim2HTMLslim.xsl</marc_html_xsl_slim>
445
446                     <spelling_dictionary>
447                         <!-- 
448                             Optionally configure different dictionaries depending on search context.  
449                             If no dictionaries are defined, the default Aspell dictionary is used.
450                         -->
451                         <!--
452                         <default>LOCALSTATEDIR/data/default_dict.txt</default>
453                         <title>LOCALSTATEDIR/data/title_dict.txt</title>
454                         <author>LOCALSTATEDIR/data/author_dict.txt</author>
455                         <subject>LOCALSTATEDIR/data/subject_dict.txt</subject>
456                         <series>LOCALSTATEDIR/data/series_dict.txt</series>
457                         -->
458                     </spelling_dictionary>
459
460                     <!-- Default to using staged search -->
461                     <use_staged_search>true</use_staged_search>
462
463                     <!--
464                         For staged search, we estimate hits based on inclusion or exclusion.
465
466                         Valid settings:
467                             inclusion - visible ratio on superpage
468                             exclusion - excluded ratio on superpage
469                             delete_adjusted_inclusion - included ratio on superpage, ratio adjusted by deleted count
470                             delete_adjusted_exclusion - excluded ratio on superpage, ratio adjusted by deleted count
471
472                         Under normal circumstances, inclusion is the best strategy, and both delete_adjusted variants
473                         will return the same value +/- 1.  The exclusion strategy is the original, and works well
474                         when there are few deleted or excluded records, in other words, when the superpage is not
475                         sparsely populated with visible records.
476                     -->
477                     <estimation_strategy>inclusion</estimation_strategy>
478
479                     <!--
480                         Evergreen uses a cover density algorithm for calculating relative ranking of matches.  There
481                         are several tuning parameters and options available.  By default, no document length normalization
482                         is applied.  From the Postgres documentation on ts_rank_cd() (the function used by Evergreen):
483
484                             Since a longer document has a greater chance of containing a query term it is reasonable 
485                             to take into account document size, e.g., a hundred-word document with five instances of 
486                             a search word is probably more relevant than a thousand-word document with five instances. 
487                             Both ranking functions take an integer normalization option that specifies whether and how 
488                             a document's length should impact its rank. The integer option controls several behaviors, 
489                             so it is a bit mask: you can specify one or more behaviors using | (for example, 2|4).
490
491                                 0 (the default) ignores the document length
492
493                                 1 divides the rank by 1 + the logarithm of the document length
494
495                                 2 divides the rank by the document length
496
497                                 4 divides the rank by the mean harmonic distance between extents (this is implemented only by ts_rank_cd)
498
499                                 8 divides the rank by the number of unique words in document
500
501                                 16 divides the rank by 1 + the logarithm of the number of unique words in document
502
503                                 32 divides the rank by itself + 1
504
505                             If more than one flag bit is specified, the transformations are applied in the order listed.
506
507                             It is important to note that the ranking functions do not use any global information, so it 
508                             is impossible to produce a fair normalization to 1% or 100% as sometimes desired. Normalization 
509                             option 32 (rank/(rank+1)) can be applied to scale all ranks into the range zero to one, but of 
510                             course this is just a cosmetic change; it will not affect the ordering of the search results.
511
512                         In Evergreen, these options are set via search modifiers.  The modifiers are mapped in the
513                         following way:
514
515                             * #CD_logDocumentLength  => 1  :: rank / (1 + LOG(total_word_count))   :: Longer documents slightly less relevant
516                             * #CD_documentLength     => 2  :: rank / total_word_count              :: Longer documents much less relevant
517                             * #CD_meanHarmonic       => 4  :: Word Proximity                       :: Greater matched-word distance is less relevant
518                             * #CD_uniqueWords        => 8  :: rank / unique_word_count             :: Documents with repeated words much less relevant
519                             * #CD_logUniqueWords     => 16 :: rank / (1 + LOG(unique_word_count))  :: Documents with repeated words slightly less relevant
520                             * #CD_selfPlusOne        => 32 :: rank / (1 + rank)                    :: Cosmetic normalization of rank value between 0 and 1
521
522                         Adding one or more of these to the default_CD_modifiers list will cause all searches that use QueryParser to apply them.
523                     -->
524                     <default_CD_modifiers>#CD_documentLength #CD_meanHarmonic #CD_uniqueWords</default_CD_modifiers>
525
526                     <!--
527                         default_preferred_language
528                             Set the global, default preferred languange
529                     -->
530                     <default_preferred_language>eng</default_preferred_language>
531
532                     <!--
533                         default_preferred_language_weight
534                             Set the weight (higher is "better") for the preferred language. Comment out to remove all lanuage weighting by default.
535                     -->
536                     <default_preferred_language_weight>5</default_preferred_language_weight>
537
538                     <!-- Baseline number of records to check for hit estimation. -->
539                     <superpage_size>1000</superpage_size>
540
541                     <!-- How many superpages to consider for searching overall. -->
542                     <max_superpages>10</max_superpages>
543
544                     <!-- zip code database file -->
545                     <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
546                 </app_settings>
547             </open-ils.search>
548
549             <!-- server for accessing user info -->
550             <open-ils.actor>
551                 <keepalive>5</keepalive>
552                 <stateless>1</stateless>
553                 <language>perl</language>
554                 <implementation>OpenILS::Application::Actor</implementation>
555                 <max_requests>93</max_requests>
556                 <unix_config>
557                     <unix_sock>open-ils.actor_unix.sock</unix_sock>
558                     <unix_pid>open-ils.actor_unix.pid</unix_pid>
559                     <max_requests>1000</max_requests>
560                     <unix_log>open-ils.actor_unix.log</unix_log>
561                     <min_children>1</min_children>
562                     <max_children>15</max_children>
563                     <min_spare_children>1</min_spare_children>
564                     <max_spare_children>5</max_spare_children>
565                 </unix_config>
566                 <!-- set this to 'true' to have barcode search also search patron records by unique ID -->
567                 <app_settings>
568                     <id_as_barcode>false</id_as_barcode>
569                 </app_settings>
570
571             </open-ils.actor>
572
573             <open-ils.booking>
574                 <keepalive>5</keepalive>
575                 <stateless>1</stateless>
576                 <language>perl</language>
577                 <implementation>OpenILS::Application::Booking</implementation>
578                 <max_requests>199</max_requests>
579                 <unix_config>
580                     <unix_sock>open-ils.booking_unix.sock</unix_sock>
581                     <unix_pid>open-ils.booking_unix.pid</unix_pid>
582                     <max_requests>1000</max_requests>
583                     <unix_log>open-ils.booking_unix.log</unix_log>
584                     <min_children>1</min_children>
585                     <max_children>15</max_children>
586                     <min_spare_children>1</min_spare_children>
587                     <max_spare_children>5</max_spare_children>
588                 </unix_config>
589                 <app_settings>
590                 </app_settings>
591             </open-ils.booking>
592
593             <open-ils.cat>
594                 <keepalive>5</keepalive>
595                 <stateless>1</stateless>
596                 <language>perl</language>
597                 <implementation>OpenILS::Application::Cat</implementation>
598                 <max_requests>199</max_requests>
599                 <unix_config>
600                     <unix_sock>open-ils.cat_unix.sock</unix_sock>
601                     <unix_pid>open-ils.cat_unix.pid</unix_pid>
602                     <max_requests>1000</max_requests>
603                     <unix_log>open-ils.cat_unix.log</unix_log>
604                     <min_children>1</min_children>
605                     <max_children>15</max_children>
606                     <min_spare_children>1</min_spare_children>
607                     <max_spare_children>5</max_spare_children>
608                 </unix_config>
609                 <app_settings>
610                     <marctemplates>
611                         <K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
612                     </marctemplates>
613                 </app_settings>
614             </open-ils.cat>
615
616             <open-ils.supercat>
617                 <keepalive>5</keepalive>
618                 <stateless>1</stateless>
619                 <language>perl</language>
620                 <implementation>OpenILS::Application::SuperCat</implementation>
621                 <max_requests>199</max_requests>
622                 <unix_config>
623                     <unix_sock>open-ils.supercat_unix.sock</unix_sock>
624                     <unix_pid>open-ils.supercat_unix.pid</unix_pid>
625                     <max_requests>1000</max_requests>
626                     <unix_log>open-ils.supercat_unix.log</unix_log>
627                     <min_children>1</min_children>
628                     <max_children>15</max_children>
629                     <min_spare_children>1</min_spare_children>
630                     <max_spare_children>5</max_spare_children>
631                 </unix_config>
632             </open-ils.supercat>
633
634             <!-- server for accessing user info -->
635             <open-ils.trigger>
636                 <keepalive>5</keepalive>
637                 <stateless>1</stateless>
638                 <language>perl</language>
639                 <implementation>OpenILS::Application::Trigger</implementation>
640                 <max_requests>93</max_requests>
641                 <unix_config>
642                     <unix_sock>open-ils.trigger_unix.sock</unix_sock>
643                     <unix_pid>open-ils.trigger_unix.pid</unix_pid>
644                     <max_requests>1000</max_requests>
645                     <unix_log>open-ils.trigger_unix.log</unix_log>
646                     <min_children>1</min_children>
647                     <max_children>15</max_children>
648                     <min_spare_children>1</min_spare_children>
649                     <max_spare_children>5</max_spare_children>
650                 </unix_config>
651                 <app_settings>
652                     <!-- number of parallel open-ils.trigger processes to use for collection and reaction -->
653                     <!--
654                     <parallel>
655                         <collect>3</collect>
656                         <react>3</react>
657                     </parallel>
658                     -->
659                 </app_settings>
660             </open-ils.trigger>
661
662             <opensrf.math>
663                 <keepalive>3</keepalive>
664                 <stateless>1</stateless>
665                 <language>c</language>
666                 <implementation>osrf_math.so</implementation>
667                 <unix_config>
668                     <unix_sock>opensrf.math_unix.sock</unix_sock>
669                     <unix_pid>opensrf.math_unix.pid</unix_pid>
670                     <max_requests>1000</max_requests>
671                     <unix_log>opensrf.math_unix.log</unix_log>
672                     <min_children>1</min_children>
673                     <max_children>15</max_children>
674                     <min_spare_children>1</min_spare_children>
675                     <max_spare_children>5</max_spare_children>
676                 </unix_config>
677             </opensrf.math>
678
679             <opensrf.dbmath> 
680                 <keepalive>3</keepalive>
681                 <stateless>1</stateless>
682                 <language>c</language>
683                 <implementation>osrf_dbmath.so</implementation>
684                 <unix_config>
685                     <max_requests>1000</max_requests>
686                     <unix_log>opensrf.dbmath_unix.log</unix_log>
687                     <unix_sock>opensrf.dbmath_unix.sock</unix_sock>
688                     <unix_pid>opensrf.dbmath_unix.pid</unix_pid>
689                     <min_children>1</min_children>
690                     <max_children>15</max_children>
691                     <min_spare_children>1</min_spare_children> 
692                     <max_spare_children>5</max_spare_children>
693                 </unix_config>
694             </opensrf.dbmath>
695
696             <open-ils.penalty>
697                 <keepalive>3</keepalive>
698                 <stateless>1</stateless>
699                 <language>perl</language>
700                 <implementation>OpenILS::Application::Penalty</implementation>
701                 <max_requests>99</max_requests>
702                 <unix_config>
703                     <max_requests>1000</max_requests>
704                     <unix_log>open-ils.penalty_unix.log</unix_log>
705                     <unix_sock>open-ils.penalty_unix.sock</unix_sock>
706                     <unix_pid>open-ils.penalty_unix.pid</unix_pid>
707                     <min_children>1</min_children>
708                     <max_children>15</max_children>
709                     <min_spare_children>1</min_spare_children>
710                     <max_spare_children>5</max_spare_children>
711                 </unix_config>
712                 <app_settings>
713                     <patron_penalty>penalty/patron_penalty.js</patron_penalty>
714                     <script_path>LIBDIR/javascript</script_path>
715                     <script_path>LOCALSTATEDIR</script_path>
716                     <script_path>LOCALSTATEDIR/catalog</script_path>
717                 </app_settings>
718             </open-ils.penalty>
719
720             <open-ils.circ> 
721                 <keepalive>3</keepalive>
722                 <stateless>1</stateless>
723                 <language>perl</language>
724                 <implementation>OpenILS::Application::Circ</implementation>
725                 <max_requests>99</max_requests>
726                 <unix_config>
727                     <max_requests>1000</max_requests>
728                     <unix_log>open-ils.circ_unix.log</unix_log>
729                     <unix_sock>open-ils.circ_unix.sock</unix_sock>
730                     <unix_pid>open-ils.circ_unix.pid</unix_pid>
731                     <min_children>1</min_children>
732                     <max_children>15</max_children>
733                     <min_spare_children>1</min_spare_children> 
734                     <max_spare_children>5</max_spare_children>
735                 </unix_config>
736                 <app_settings>
737                     <notify_hold>
738                         <email>false</email> <!-- set to false to disable hold notice emails -->
739                     </notify_hold>
740
741                     <!-- circulation policy scripts -->
742                     <script_path>LIBDIR/javascript</script_path>
743                     <script_path>LOCALSTATEDIR</script_path>
744                     <script_path>LOCALSTATEDIR/catalog</script_path>
745                     <legacy_script_support>false</legacy_script_support>
746                     <scripts> 
747                         <circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
748                         <circ_permit_copy>circ/circ_permit_copy.js</circ_permit_copy>
749                         <circ_duration>circ/circ_duration.js</circ_duration>
750                         <circ_recurring_fines>circ/circ_recurring_fines.js</circ_recurring_fines>
751                         <circ_max_fines>circ/circ_max_fines.js</circ_max_fines>
752                         <circ_permit_renew>circ/circ_permit_renew.js</circ_permit_renew>
753                         <circ_permit_hold>circ/circ_permit_hold.js</circ_permit_hold>
754                     </scripts>               
755
756                     <circ_modifiers>
757                         <mod>art</mod>
758                         <mod>atlas</mod>
759                         <mod>audiobook</mod>
760                         <mod>av</mod>
761                         <mod>new-av</mod>
762                         <mod>bestseller</mod>
763                         <mod>bestsellernh</mod>
764                         <mod>book</mod>
765                         <mod>cd</mod>
766                         <mod>dvd</mod>
767                         <mod>dvd-long</mod>
768                         <mod>e-book</mod>
769                         <mod>equipment</mod>
770                         <mod>filmstrip</mod>
771                         <mod>kit</mod>
772                         <mod>magazine</mod>
773                         <mod>map</mod>
774                         <mod>microform</mod>
775                         <mod>music</mod>
776                         <mod>record</mod>
777                         <mod>software</mod>
778                         <mod>softwrlong</mod>
779                         <mod>equip-long</mod>
780                         <mod>talking book</mod>
781                         <mod>toy</mod>
782                         <mod>video</mod>
783                         <mod>video-long</mod>
784                     </circ_modifiers>
785
786                     <billing_types>
787                         <type>Miscellaneous</type>
788                         <type>Overdue materials</type>
789                         <type>Fee for placing a hold</type>
790                         <type>Fee for checking out a book</type>
791                         <type>Fee for library card</type>
792                         <type>Miscellaneous charges</type>
793                         <type>Lost materials</type>
794                         <type>Damaged material</type>
795                         <type>Overdue Reserves charge</type>
796                         <type>Recall overdue</type>
797                         <type>Fee for processing lost library materials</type>
798                         <type>Fee for sending patron bills to collection agency</type>
799                         <type>Fee for interlibrary loan</type>
800                         <type>Fee for copies</type>
801                         <type>Money advanced to pay for telephone use</type>
802                         <type>Deposit fee</type>
803                         <type>Fee for disk</type>
804                         <type>Fee for faxing</type>
805                         <type>Fee for laminating</type>
806                         <type>Fee for room cleaning</type>
807                         <type>Deposit returned; fee refund</type>
808                         <type>Sale items</type>
809                         <type>Fee for lost card</type>
810                         <type>Long overdue items</type>
811                         <type>Lost/Replacement Cassette</type>
812                         <type>Returned Check</type>
813                     </billing_types>
814                 </app_settings>
815             </open-ils.circ>
816
817             <open-ils.ingest>
818                 <keepalive>3</keepalive>
819                 <stateless>1</stateless>
820                 <implementation>OpenILS::Application::Ingest</implementation>
821                 <language>perl</language>
822                 <max_requests>1000000</max_requests>
823                 <unix_config>
824                     <max_requests>1000000</max_requests>
825                     <unix_log>open-ils.ingest-unix.log</unix_log>
826                     <unix_sock>open-ils.ingest-unix.sock</unix_sock>
827                     <unix_pid>open-ils.ingest-unix.pid</unix_pid>
828                     <min_children>5</min_children>
829                     <max_children>20</max_children>
830                     <min_spare_children>2</min_spare_children>
831                     <max_spare_children>5</max_spare_children>
832                 </unix_config>
833                 <app_settings>
834                     <script_path>LIBDIR/javascript/</script_path>
835                     <script_path>LOCALSTATEDIR/catalog/</script_path>
836                     <script_path>LOCALSTATEDIR/web/opac/common/js/</script_path>
837                     <scripts>
838                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
839                         <biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
840                     </scripts>
841                 </app_settings>
842             </open-ils.ingest>
843
844             <open-ils.storage>
845                 <keepalive>10</keepalive>
846                 <stateless>1</stateless>
847                 <language>perl</language>
848                 <implementation>OpenILS::Application::Storage</implementation>
849                 <unix_config>
850                     <max_requests>1000</max_requests>
851                     <unix_log>open-ils.storage_unix.log</unix_log>
852                     <unix_sock>open-ils.storage_unix.sock</unix_sock>
853                     <unix_pid>open-ils.storage_unix.pid</unix_pid>
854                     <min_children>1</min_children>
855                     <max_children>10</max_children>
856                     <min_spare_children>1</min_spare_children>
857                     <max_spare_children>5</max_spare_children>
858                 </unix_config>
859                 <app_settings>
860                     <script_path>LIBDIR/javascript/</script_path>
861                     <script_path>LOCALSTATEDIR/catalog/</script_path>
862                     <scripts>
863                         <biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
864                     </scripts>
865                     <databases>
866                         <driver>Pg</driver>
867                         <database>
868                             <type>master</type>
869                             <weight>2</weight>
870                             <user>postgres</user>
871                             <host>localhost</host>
872                             <port>5432</port>
873                             <pw>postgres</pw>
874                             <db>evergreen</db>
875                             <client_encoding>UTF-8</client_encoding>
876                         </database>
877                     </databases>
878                 </app_settings>
879             </open-ils.storage>
880
881             <open-ils.cstore>
882                 <keepalive>6</keepalive>
883                 <stateless>1</stateless>
884                 <language>C</language>
885                 <implementation>oils_cstore.so</implementation>
886                 <unix_config>
887                     <max_requests>1000</max_requests>
888                     <min_children>1</min_children>
889                     <max_children>15</max_children>
890                     <min_spare_children>1</min_spare_children>
891                     <max_spare_children>5</max_spare_children>
892                 </unix_config>
893                 <app_settings>
894                     <max_query_recursion>100</max_query_recursion>
895                     <driver>pgsql</driver>
896                     <database>
897                         <type>master</type>
898                         <weight>2</weight>
899                         <user>postgres</user>
900                         <host>localhost</host>
901                         <port>5432</port>
902                         <pw>postgres</pw>
903                         <db>evergreen</db>
904                         <client_encoding>UTF-8</client_encoding>
905                     </database>
906                 </app_settings>
907             </open-ils.cstore>
908
909             <open-ils.pcrud>
910                 <keepalive>6</keepalive>
911                 <migratable>1</migratable>
912                 <stateless>1</stateless>
913                 <language>C</language>
914                 <implementation>oils_pcrud.so</implementation>
915
916                 <unix_config>
917                     <unix_log>open-ils.pcrud.log</unix_log>
918                     <unix_sock>open-ils.pcrud.sock</unix_sock>
919                     <unix_pid>open-ils.pcrud.pid</unix_pid>
920                     <max_requests>1000</max_requests>
921                     <min_children>1</min_children>
922                     <max_children>15</max_children>
923                     <min_spare_children>1</min_spare_children>
924                     <max_spare_children>5</max_spare_children>
925                 </unix_config>
926
927                 <app_settings>
928                     <IDL>SYSCONFDIR/fm_IDL.xml</IDL>
929                     <driver>pgsql</driver>
930                     <database>
931                         <type>master</type>
932                         <weight>2</weight>
933                         <user>postgres</user>
934                         <host>localhost</host>
935                         <port>5432</port>
936                         <pw>postgres</pw>
937                         <db>evergreen</db>
938                         <client_encoding>UTF-8</client_encoding>
939                     </database>
940                 </app_settings>
941             </open-ils.pcrud>
942
943             <open-ils.qstore>
944                 <keepalive>6</keepalive>
945                 <stateless>1</stateless>
946                 <language>C</language>
947                 <implementation>oils_qstore.so</implementation>
948                 <unix_config>
949                     <max_requests>1000</max_requests>
950                     <min_children>1</min_children>
951                     <max_children>15</max_children>
952                     <min_spare_children>1</min_spare_children>
953                     <max_spare_children>5</max_spare_children>
954                 </unix_config>
955                 <app_settings>
956                     <driver>pgsql</driver>
957                     <database>
958                         <type>master</type>
959                         <weight>2</weight>
960                         <user>postgres</user>
961                         <host>localhost</host>
962                         <port>5432</port>
963                         <pw>postgres</pw>
964                         <db>evergreen</db>
965                         <client_encoding>UTF-8</client_encoding>
966                     </database>
967                 </app_settings>
968             </open-ils.qstore>
969
970             <opensrf.settings>
971                 <keepalive>1</keepalive>
972                 <stateless>1</stateless>
973                 <language>perl</language>
974                 <implementation>OpenSRF::Application::Settings</implementation>
975                 <max_requests>17</max_requests>
976                 <unix_config>
977                     <unix_sock>opensrf.settings_unix.sock</unix_sock>
978                     <unix_pid>opensrf.settings_unix.pid</unix_pid>
979                     <max_requests>300</max_requests>
980                     <unix_log>opensrf.settings_unix.log</unix_log>
981                     <min_children>5</min_children>
982                     <max_children>15</max_children>
983                     <min_spare_children>3</min_spare_children>
984                     <max_spare_children>5</max_spare_children>
985                 </unix_config>
986             </opensrf.settings>
987
988             <open-ils.collections>
989                 <keepalive>3</keepalive>
990                 <stateless>1</stateless>
991                 <language>perl</language>
992                 <implementation>OpenILS::Application::Collections</implementation>
993                 <max_requests>17</max_requests>
994                 <unix_config>
995                     <unix_sock>open-ils.collections_unix.sock</unix_sock>
996                     <unix_pid>open-ils.collections_unix.pid</unix_pid>
997                     <max_requests>1000</max_requests>
998                     <unix_log>open-ils.collections_unix.log</unix_log>
999                     <min_children>1</min_children>
1000                     <max_children>10</max_children>
1001                     <min_spare_children>1</min_spare_children>
1002                     <max_spare_children>5</max_spare_children>
1003                 </unix_config>
1004             </open-ils.collections>
1005
1006             <open-ils.reporter>
1007                 <keepalive>3</keepalive>
1008                 <stateless>1</stateless>
1009                 <language>perl</language>
1010                 <implementation>OpenILS::Application::Reporter</implementation>
1011                 <max_requests>99</max_requests>
1012                 <unix_config>
1013                     <unix_sock>open-ils.reporter_unix.sock</unix_sock>
1014                     <unix_pid>open-ils.reporter_unix.pid</unix_pid>
1015                     <max_requests>1000</max_requests>
1016                     <unix_log>open-ils.reporter_unix.log</unix_log>
1017                     <min_children>1</min_children>
1018                     <max_children>10</max_children>
1019                     <min_spare_children>1</min_spare_children>
1020                     <max_spare_children>5</max_spare_children>
1021                 </unix_config>
1022             </open-ils.reporter>
1023
1024             <open-ils.reporter-store>
1025                 <keepalive>6</keepalive>
1026                 <stateless>1</stateless>
1027                 <language>C</language>
1028                 <implementation>oils_rstore.so</implementation>
1029                 <unix_config>
1030                     <max_requests>400</max_requests>
1031                     <min_children>1</min_children>
1032                     <max_children>10</max_children>
1033                     <min_spare_children>1</min_spare_children>
1034                     <max_spare_children>5</max_spare_children>
1035                 </unix_config>
1036                 <app_settings>
1037                     <driver>pgsql</driver>
1038                     <database>
1039                         <type>master</type>
1040                         <weight>2</weight>
1041                         <user>postgres</user>
1042                         <host>localhost</host>
1043                         <port>5432</port>
1044                         <pw>postgres</pw>
1045                         <db>evergreen</db>
1046                         <client_encoding>UTF-8</client_encoding>
1047                     </database>
1048                 </app_settings>
1049             </open-ils.reporter-store>
1050
1051 <!--
1052            <open-ils.resolver>
1053                <keepalive>3</keepalive>
1054                <stateless>1</stateless>
1055                <language>perl</language>
1056                <implementation>OpenILS::Application::ResolverResolver</implementation>
1057                <max_requests>93</max_requests>
1058                <unix_config>
1059                   <unix_sock>open-ils.resolver_unix.sock</unix_sock>
1060                   <unix_pid>open-ils.resolver_unix.pid</unix_pid>
1061                   <max_requests>1000</max_requests>
1062                   <unix_log>open-ils.resolver_unix.log</unix_log>
1063                   <min_children>5</min_children>
1064                   <max_children>15</max_children>
1065                   <min_spare_children>3</min_spare_children>
1066                   <max_spare_children>5</max_spare_children>
1067                </unix_config>
1068                <app_settings>
1069                   <cache_timeout>86400</cache_timeout>
1070                   <default_url_base>http://path/to/sfx</default_url_base>
1071                </app_settings>
1072             </open-ils.resolver>
1073 -->
1074
1075             <open-ils.permacrud>
1076                <keepalive>3</keepalive>
1077                <stateless>1</stateless>
1078                <language>perl</language>
1079                <implementation>OpenILS::Application::PermaCrud</implementation>
1080                <max_requests>17</max_requests>
1081                <unix_config>
1082                   <unix_sock>open-ils.permacrud_unix.sock</unix_sock>
1083                   <unix_pid>open-ils.permacrud_unix.pid</unix_pid>
1084                   <max_requests>1000</max_requests>
1085                   <unix_log>open-ils.permacrud_unix.log</unix_log>
1086                   <min_children>5</min_children>
1087                   <max_children>15</max_children>
1088                   <min_spare_children>3</min_spare_children>
1089                   <max_spare_children>5</max_spare_children>
1090                </unix_config>
1091             </open-ils.permacrud>
1092
1093             <open-ils.fielder>
1094                <keepalive>3</keepalive>
1095                <stateless>1</stateless>
1096                <language>perl</language>
1097                <implementation>OpenILS::Application::Fielder</implementation>
1098                <max_requests>17</max_requests>
1099                <unix_config>
1100                   <unix_sock>open-ils.fielder_unix.sock</unix_sock>
1101                   <unix_pid>open-ils.fielder_unix.pid</unix_pid>
1102                   <max_requests>1000</max_requests>
1103                   <unix_log>open-ils.fielder_unix.log</unix_log>
1104                   <min_children>5</min_children>
1105                   <max_children>15</max_children>
1106                   <min_spare_children>3</min_spare_children>
1107                   <max_spare_children>5</max_spare_children>
1108                </unix_config>
1109             </open-ils.fielder>
1110
1111             <open-ils.vandelay>
1112                 <keepalive>5</keepalive>
1113                 <stateless>1</stateless>
1114                 <language>perl</language>
1115                 <implementation>OpenILS::Application::Vandelay</implementation>
1116                 <max_requests>100</max_requests>
1117                 <unix_config>
1118                     <unix_sock>vandelay_unix.sock</unix_sock>
1119                     <unix_pid>vandelay_unix.pid</unix_pid>
1120                     <unix_log>vandelay_unix.log</unix_log>
1121                     <max_requests>100</max_requests>
1122                     <min_children>1</min_children>
1123                     <max_children>15</max_children>
1124                     <min_spare_children>1</min_spare_children>
1125                     <max_spare_children>5</max_spare_children>
1126                 </unix_config>
1127                 <app_settings>
1128                     <databases>
1129                         <!-- temporary location for MARC import files.  
1130                             Files will be deleted after records are spooled.
1131                             *note:  in a multi-brick environment, this will need to
1132                             be on a write-able NFS share.  -->
1133                         <importer>/tmp</importer>
1134                     </databases>
1135                 </app_settings>
1136             </open-ils.vandelay>
1137
1138             <open-ils.serial>
1139                 <keepalive>3</keepalive>
1140                 <stateless>1</stateless>
1141                 <language>perl</language>
1142                 <implementation>OpenILS::Application::Serial</implementation>
1143                 <max_requests>17</max_requests>
1144                 <unix_config>
1145                     <unix_sock>open-ils.serial_unix.sock</unix_sock>
1146                     <unix_pid>open-ils.serial_unix.pid</unix_pid>
1147                     <max_requests>1000</max_requests>
1148                     <unix_log>open-ils.serial_unix.log</unix_log>
1149                     <min_children>5</min_children>
1150                     <max_children>15</max_children>
1151                     <min_spare_children>3</min_spare_children>
1152                     <max_spare_children>5</max_spare_children>
1153                 </unix_config>
1154                 <app_settings>
1155                 </app_settings>
1156             </open-ils.serial>
1157
1158         </apps>
1159     </default>
1160
1161     <hosts>
1162
1163         <localhost> 
1164             <!-- ^-=- 
1165             Should match the fully qualified domain name of the host.
1166
1167             On Linux, the output of the following command is authoritative:
1168             $ perl -MNet::Domain -e 'print Net::Domain::hostfqdn() . "\n";'
1169
1170             To use 'localhost' instead, run osrf_ctl.sh with the -l flag
1171             -->
1172
1173             <activeapps>
1174                 <!-- services hosted on this machine -->
1175                 <appname>opensrf.settings</appname> 
1176                 <appname>opensrf.math</appname> 
1177                 <appname>opensrf.dbmath</appname> 
1178                 <appname>open-ils.acq</appname> 
1179                 <appname>open-ils.booking</appname>
1180                 <appname>open-ils.cat</appname> 
1181                 <appname>open-ils.supercat</appname> 
1182                 <appname>open-ils.search</appname> 
1183                 <appname>open-ils.circ</appname> 
1184                 <appname>open-ils.actor</appname> 
1185                 <appname>open-ils.auth</appname> 
1186                 <appname>open-ils.storage</appname>  
1187                 <appname>open-ils.penalty</appname>  
1188                 <appname>open-ils.cstore</appname>  
1189                 <appname>open-ils.collections</appname>  
1190                 <appname>open-ils.ingest</appname>  
1191                 <appname>open-ils.reporter</appname>  
1192                 <appname>open-ils.reporter-store</appname>  
1193                 <!-- <appname>open-ils.resolver</appname> -->
1194                 <appname>open-ils.permacrud</appname>  
1195                 <appname>open-ils.pcrud</appname>  
1196                 <appname>open-ils.trigger</appname>  
1197                 <appname>open-ils.fielder</appname>  
1198                 <appname>open-ils.vandelay</appname>  
1199                 <appname>open-ils.serial</appname>  
1200             </activeapps>
1201         </localhost>
1202     </hosts>
1203
1204 </opensrf>