[open-ils-commits] r11868 - branches/rel_1_4/Open-ILS/examples

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 16 23:43:43 EST 2009


Author: dbs
Date: 2009-01-16 23:43:41 -0500 (Fri, 16 Jan 2009)
New Revision: 11868

Modified:
   branches/rel_1_4/Open-ILS/examples/opensrf_core.xml.example
Log:
Add explicit router_name element required by OpenSRF
Replace hardcoded paths with variables to be replaced by autoconf
Reformat with xmllint --format for consistent indentation


Modified: branches/rel_1_4/Open-ILS/examples/opensrf_core.xml.example
===================================================================
--- branches/rel_1_4/Open-ILS/examples/opensrf_core.xml.example	2009-01-17 03:35:26 UTC (rev 11867)
+++ branches/rel_1_4/Open-ILS/examples/opensrf_core.xml.example	2009-01-17 04:43:41 UTC (rev 11868)
@@ -1,142 +1,157 @@
-<?xml version='1.0'?>
+<?xml version="1.0"?>
+<!-- 
+Example OpenSRF bootstrap configuration file for Evergreen
+-->
 <config>
+  <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
+  <opensrf>
+    <routers>
 
-    <!-- Options for <loglevel>: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
+      <!-- define the list of routers our services will register with -->
+      <router>
+        <!-- 
+          This is the public router.  On this router, we only register
+          applications which should be accessible to everyone on the OpenSRF
+          network
+        -->
+        <name>router</name>
+        <domain>public.localhost</domain>
 
-	<opensrf>
+        <services>
+          <service>opensrf.math</service>
+          <service>open-ils.cat</service>
+          <service>open-ils.supercat</service>
+          <service>open-ils.search</service>
+          <service>open-ils.circ</service>
+          <service>open-ils.actor</service>
+          <service>open-ils.auth</service>
+          <service>open-ils.collections</service>
+          <service>open-ils.reporter</service>
+        </services>
+      </router>
 
-		<routers>
-            <!-- define the list of routers our services will register with -->
-			<router>
-                <!-- This is the public router.  On this router, we only register applications
-                     which should be accessible to everyone on the opensrf network -->
-                <name>router</name>
-                <domain>public.localhost</domain>
-                <services>
-				    <service>opensrf.math</service> 
-				    <service>open-ils.cat</service> 
-				    <service>open-ils.supercat</service> 
-				    <service>open-ils.search</service> 
-				    <service>open-ils.circ</service> 
-				    <service>open-ils.actor</service> 
-				    <service>open-ils.auth</service> 
-				    <service>open-ils.collections</service>  
-				    <service>open-ils.reporter</service>  
-                </services>
-            </router>
-
-			<router>
-                <!-- This is the private router.  All applications must register with 
-                    this router, so no explicit <services> section is required -->
-                <name>router</name>
-                <domain>private.localhost</domain>
-            </router>
-		</routers>
-
-
-        <!-- Our domain should match that of the private router -->
-		<domain>private.localhost</domain>
-		<username>osrf</username>
-		<passwd>osrf</passwd>
-		<port>5222</port>
-
-		<logfile>/openils/var/log/osrfsys.log</logfile>
+      <router>
         <!--
-		<logfile>syslog</logfile>
-		<syslog>local0</syslog>
-		<actlog>local1</actlog>
+          This is the private router.  All applications must register with 
+          this router, so no explicit <services> section is required
         -->
-		<loglevel>3</loglevel>
-		<settings_config>/openils/conf/opensrf.xml</settings_config>
-	</opensrf>
+        <name>router</name>
+        <domain>private.localhost</domain>
+      </router>
+    </routers>
 
+    <!-- Our domain should match that of the private router -->
+    <domain>private.localhost</domain>
+    <username>osrf</username>
+    <passwd>osrf</passwd>
+    <port>5222</port>
 
-	<!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
-	<gateway>
+    <!-- 
+      Name of the router used on our private domain.  
+      This should match one of the <name> of the private router above.
+     -->
+    <router_name>router</router_name>
 
-		<client>true</client>
-		<router_name>router</router_name>
+    <logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
+    <!--
+      <logfile>syslog</logfile>
+      <syslog>local0</syslog>
+      <actlog>local1</actlog>
+     -->
+    <loglevel>3</loglevel>
+    <settings_config>SYSCONFDIR/opensrf.xml</settings_config>
+  </opensrf>
+  <!-- 
+    The section between <gateway>...</gateway> is a standard OpenSRF C
+    stack configuration file
+  -->
+  <gateway>
+    <client>true</client>
+    <router_name>router</router_name>
 
-        <!-- The gateway connects to the public domain for security -->
-		<domain>public.localhost</domain>
+    <!-- The gateway connects to the public domain for security -->
+    <domain>public.localhost</domain>
 
-      <!-- this section will be soon deprecated for multi-domain mode... -->
-      <services>
-         <service>opensrf.math</service>
-         <service>opensrf.dbmath</service>
-         <service>open-ils.cat</service>
-         <service>open-ils.search</service>
-         <service>open-ils.circ</service>
-         <service>open-ils.actor</service>
-         <service>open-ils.auth</service>
-         <service>open-ils.collections</service>
-         <service>open-ils.reporter</service>
-      </services>
+    <!-- This section will be soon deprecated for multi-domain mode... -->
+    <services>
+      <service>opensrf.math</service>
+      <service>opensrf.dbmath</service>
+      <service>open-ils.cat</service>
+      <service>open-ils.search</service>
+      <service>open-ils.circ</service>
+      <service>open-ils.actor</service>
+      <service>open-ils.auth</service>
+      <service>open-ils.collections</service>
+      <service>open-ils.reporter</service>
+    </services>
 
-		<!-- jabber login info -->
-		<username>osrf</username>
-		<passwd>osrf</passwd>
-		<port>5222</port>
-		<loglevel>3</loglevel>
-		<logfile>/openils/var/log/gateway.log</logfile>
-        <!--
-    	<logfile>syslog</logfile>
-		<syslog>local6</syslog>
-		<actlog>local1</actlog>
+    <!-- jabber login info -->
+    <username>osrf</username>
+    <passwd>osrf</passwd>
+    <port>5222</port>
+    <loglevel>3</loglevel>
+    <logfile>LOCALSTATEDIR/log/gateway.log</logfile>
+    <!--
+      <logfile>syslog</logfile>
+      <syslog>local6</syslog>
+      <actlog>local1</actlog>
+    -->
+  </gateway>
+  <!-- ======================================================================================== -->
+  <routers>
+    <router>
+      <!-- public router -->
+      <trusted_domains>
+        <!-- 
+          Allow private services to register with this router 
+          and public client to send requests to this router. 
         -->
-	</gateway>
+        <server>private.localhost</server>
 
-	<!-- ======================================================================================== -->
+        <!-- 
+          Also allow private clients to send to the router so it
+          can receive error messages
+        -->
+        <client>private.localhost</client>
+        <client>public.localhost</client>
 
-    <routers>
-        <router> <!-- public router -->
-            <trusted_domains>
-                <!-- allow private services to register with this router 
-                     and public client to send requests to this router. -->
-                <server>private.localhost</server>
-                <!-- also allow private clients to send to the router so it can receive error messages -->
-                <client>private.localhost</client>
-                <client>public.localhost</client>
-            </trusted_domains>
-            <transport>
-                <server>public.localhost</server>
-                <port>5222</port>
-                <unixpath>/openils/var/sock/unix_sock</unixpath>
-                <username>router</username>
-                <password>osrf</password>
-                <resource>router</resource>
-                <connect_timeout>10</connect_timeout>
-                <max_reconnect_attempts>5</max_reconnect_attempts>
-            </transport>
-            <logfile>syslog</logfile>
-            <syslog>local2</syslog>
-            <loglevel>5</loglevel>
-        </router>
-        <router> <!-- private router -->
-            <trusted_domains>
-                <server>private.localhost</server>
-                <!-- only clients on the private domain can send requests to this router -->
-                <client>private.localhost</client>
-            </trusted_domains>
-            <transport>
-                <server>private.localhost</server>
-                <port>5222</port>
-                <username>router</username>
-                <password>osrf</password>
-                <resource>router</resource>
-                <connect_timeout>10</connect_timeout>
-                <max_reconnect_attempts>5</max_reconnect_attempts>
-            </transport>
-            <logfile>syslog</logfile>
-            <syslog>local2</syslog>
-            <loglevel>4</loglevel>
-        </router>
-    </routers>
-
-	<!-- ======================================================================================== -->
-
+      </trusted_domains>
+      <transport>
+        <server>public.localhost</server>
+        <port>5222</port>
+        <unixpath>LOCALSTATEDIR/sock/unix_sock</unixpath>
+        <username>router</username>
+        <password>osrf</password>
+        <resource>router</resource>
+        <connect_timeout>10</connect_timeout>
+        <max_reconnect_attempts>5</max_reconnect_attempts>
+      </transport>
+      <logfile>syslog</logfile>
+      <syslog>local2</syslog>
+      <loglevel>5</loglevel>
+    </router>
+    <router>
+      <!-- private router -->
+      <trusted_domains>
+        <server>private.localhost</server>
+        <!-- 
+          Only clients on the private domain can send requests to this router
+         -->
+        <client>private.localhost</client>
+      </trusted_domains>
+      <transport>
+        <server>private.localhost</server>
+        <port>5222</port>
+        <username>router</username>
+        <password>osrf</password>
+        <resource>router</resource>
+        <connect_timeout>10</connect_timeout>
+        <max_reconnect_attempts>5</max_reconnect_attempts>
+      </transport>
+      <logfile>syslog</logfile>
+      <syslog>local2</syslog>
+      <loglevel>4</loglevel>
+    </router>
+  </routers>
+  <!-- ======================================================================================== -->
 </config>
-
-
-
-



More information about the open-ils-commits mailing list