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