Changes between Version 12 and Version 13 of FactoryManual/StandardFactory


Ignore:
Timestamp:
07/07/10 09:20:55 (10 years ago)
Author:
sander
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FactoryManual/StandardFactory

    v12 v13  
    9898== Running the standard factory == #Running 
    9999 
    100 To run the standard factory, execute the `src/factory.py` script. There are a couple of extra commandline arguments that you can pass to this script. 
     100To run the standard factory, execute the `src/factory.py` script with one of the commands {{{start}}}, {{{stop}}} or {{{restart}}}. 
     101 
     102 start:: 
     103    Start the factory. 
     104 stop:: 
     105    If the factory is running as a daemon, stop it. 
     106 restart:: 
     107    If the factory is running as a daemon, restart it. 
     108 
     109There are a couple of extra commandline arguments that you can pass to this script. 
    101110 
    102111 --?, --h, --help:: 
    103112    Show the help on the commandline options.  
    104  -c, --condig:: 
     113 -c, --config:: 
    105114    Full path to the configuration file to use. By default conf/config.ini is used.  
    106115 -d, --debug:: 
    107     Turn on debugging. When debugging is on the `log_level` will be set to debug, all log messages will appear on the console 
     116    Turn on debugging. When debugging is on the factory will not run as a daemon, `log_level` will be set to debug, all log messages will appear on the console 
    108117    and all XML-RPC requests and responses will be echoed. 
    109118 
     
    112121[[NoteBox(note, Please install some extra fonts on the machine that you are running the factory. Fonts itself are not part of the ODF specification but are part of the system that the application is running on. Officeshots serves an international audience. If someone uploads a document with Chinese characters but you do not have such a font installed, the result will not look good and the user could assume that the application does not work correctly, even though it does. So, please make sure that you have Western, Cyrillic and basic Asian fonts installed. Linux users, please consider installing the MSFT core font package, or install the free Liberation replacement fonts from Red Hat.)]] 
    113122 
     123== Running as a service == 
     124 
     125There is an init script for running the factory as a system service in Debian and derivative Linux distributions. You can find this init script in {{{utils/officeshots-factory}}}. Note that this init script depends on the {{{oooserver}}} init script for running !OpenOffice.org as a service. If you do not run !OpenOffice.org in your factory, remove the dependency on {{{oooserver}}} from the top of the init script. 
     126 
     127To use the script, copy it to {{{/etc/init.d/officeshots-factory}}} and edit the configuration settings in the file. Then execute the following command to install it to the proper runlevels: 
     128 
     129{{{# update-rc.d officeshots-factory defaults}}} 
     130 
     131[[NoteBox(warn, Make sure that you are using non-encrypted SSL client certificates when you run the factory as a service. If you use encrypted certificates then the factory will promt for your password every time you boot, shutdown, etcetera.)]] 
     132 
    114133[../Setup << Previous: Setting up your account] | [./OOOServer Next: OOOServer backend >>]