[Erp5-report] r11408 - /erp5/trunk/utils/oood/config.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 21 16:58:30 CET 2006


Author: kevin
Date: Tue Nov 21 16:58:28 2006
New Revision: 11408

URL: http://svn.erp5.org?rev=11408&view=rev
Log:
Change variable names to respect naming convention.
Add new pid directory and pool host options.
Change default server port to 8008 to not conflict with httpsd on the live cd.
Rename number option to pool_size.
Add new pool_port_range_start and set it to free port.

Modified:
    erp5/trunk/utils/oood/config.py

Modified: erp5/trunk/utils/oood/config.py
URL: http://svn.erp5.org/erp5/trunk/utils/oood/config.py?rev=11408&r1=11407&r2=11408&view=diff
==============================================================================
--- erp5/trunk/utils/oood/config.py (original)
+++ erp5/trunk/utils/oood/config.py Tue Nov 21 16:58:28 2006
@@ -27,13 +27,32 @@
 #
 ##############################################################################
 
-basedir    = '/var/lib/oood/'
-serverhost = '127.0.0.1'
-port       = 8080
-unopath    = '/opt/openoffice.org2.0/program'
-logfile    = basedir + '/log.txt'
-number     = 1
-loadtime   = 200  # time we have to gave one OOo to load in restart
-timeout    = 20   # seconds to wait before killing and restarting OOo instance
+###################################################################
+# System config
+###################################################################
 
-# vim: syntax=python filetype=python
+oood_home = '/var/lib/oood/'
+pid_dir   = '/var/run/oood/'
+uno_path  = '/opt/openoffice.org2.0/program'
+log_file  = oood_home + '/log.txt'
+
+
+###################################################################
+# Server settings
+###################################################################
+
+server_host = '127.0.0.1'
+server_port = 8008  # Other http-alt ports are 591 and 8080
+
+
+###################################################################
+# Pool settings
+# The pool consist of several OpenOffice.org instances
+###################################################################
+
+pool_size             = 3
+pool_host             = 'localhost'
+pool_port_range_start = 4060 # According www.iana.org/assignments/port-numbers , 4060-4088 port range is unassigned
+instance_load_time    = 200  # time in seconds we have to gave one OOo instance to load in restart
+instance_timeout      = 20   # seconds to wait before killing and restarting OOo instance
+




More information about the Erp5-report mailing list