[Erp5-report] r37673 gabriel - in /erp5/trunk/utils/cloudooo: ./ cloudooo/ cloudooo/samples/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 10 15:24:58 CEST 2010
Author: gabriel
Date: Tue Aug 10 15:24:52 2010
New Revision: 37673
URL: http://svn.erp5.org?rev=37673&view=rev
Log:
remove configuration in cloudooo.conf that executes the daemon with configuration file. The script cloudooo.sh is needed to send signal to server and stop the OpenOffice.org process.
Modified:
erp5/trunk/utils/cloudooo/README
erp5/trunk/utils/cloudooo/cloudooo/cloudooo
erp5/trunk/utils/cloudooo/cloudooo/samples/cloudooo.conf
Modified: erp5/trunk/utils/cloudooo/README
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/README?rev=37673&r1=37672&r2=37673&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/README [utf8] (original)
+++ erp5/trunk/utils/cloudooo/README [utf8] Tue Aug 10 15:24:52 2010
@@ -39,23 +39,21 @@ Create Configuration File
The configuration file is used to start the application using paster.
$ cp ./cloudooo/samples/cloudooo.conf . # Copy to current folder
-
+ $ cp ./cloudooo/cloudooo ./cloudooo.sh
+
The next step is define some attributes in cloudooo.conf:
- uno and soffice path;
- python path;
- unomimemapper.py and unoconverter.py paths;# This files are created when setup.py is executed;
- - user and group;
- - paster path in first line;
-
- After setting all configuration, give executable permission to this file.
-
- $ chmod +x cloudooo.conf
+ After setting all configuration, need pass to cloudooo script the paster and configutation file path.
+ So, replace $CONF_PATH and $PASTER_PATH to your machine paths.
+
Run Application
===============
- $ ./cloudooo.conf start
+ $ ./cloudooo.sh start
Description of Daemon
Modified: erp5/trunk/utils/cloudooo/cloudooo/cloudooo
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/cloudooo?rev=37673&r1=37672&r2=37673&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/cloudooo [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/cloudooo [utf8] Tue Aug 10 15:24:52 2010
@@ -1,5 +1,8 @@
#!/bin/sh
+$PASTER_PATH="paster"
+$CONF_PATH="./samples/cloudooo.conf"
+
lsb_functions="/etc/rc.d/init.d/functions"
if test -f $lsb_functions ; then
. $lsb_functions
@@ -23,13 +26,15 @@ SELF=$FOLDER$(basename $0)
case "$1" in
start)
- paster serve ./samples/cloudooo.conf --daemon;;
+ $PASTER_PATH serve $CONF_PATH --daemon;;
stop)
kill -1 `cat $CLOUDOOO_PID`;
- paster serve ./samples/cloudooo.conf --stop-daemon;;
+ $PASTER_PATH serve $CONF_PATH --stop-daemon;;
restart)
$SELF stop;
$SELF start;;
+fg)
+ $PASTER_PATH serve $CONF_PATH;;
*)
echo "Usage: ./cloudooo {start|stop|restart}";
exit 1;;
Modified: erp5/trunk/utils/cloudooo/cloudooo/samples/cloudooo.conf
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/samples/cloudooo.conf?rev=37673&r1=37672&r2=37673&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/samples/cloudooo.conf [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/samples/cloudooo.conf [utf8] Tue Aug 10 15:24:52 2010
@@ -1,4 +1,3 @@
-#!/usr/bin/env paster
[app:main]
use = egg:cloudooo
#
@@ -57,11 +56,3 @@ python_path = /usr/bin/python
use = egg:PasteScript#wsgiutils
host = 0.0.0.0
port = 8011
-
-[exe]
-command = serve
-daemon = true
-user = nobody
-group = nobody
-log-file = cloudooo.log
-pid-file = cloudooo.pid
More information about the Erp5-report
mailing list