From c117519c4e30c240ff01699f24af014bf22aa50b Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Wed, 18 Aug 2010 12:35:16 +0000
Subject: [PATCH] remove cloudooo script because is not used more and add in
 REAME how to stop the application correctly

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@37884 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 cloudooo/README   | 15 ++++++++++++---
 cloudooo/cloudooo | 42 ------------------------------------------
 2 files changed, 12 insertions(+), 45 deletions(-)
 delete mode 100755 cloudooo/cloudooo

diff --git a/cloudooo/README b/cloudooo/README
index b54f725..cac9125 100644
--- a/cloudooo/README
+++ b/cloudooo/README
@@ -42,7 +42,8 @@ Create Configuration File
 
   The next step is define some attributes in cloudooo.conf:
  
-    - uno and soffice path;
+    - uno_path - full path to UNO library;
+    - soffice_bin_path - full path to soffice.bin;
 
 Run Application
 ===============
@@ -54,8 +55,16 @@ Run Application
   $ paster serve ./cloudoo.conf --daemon
   
 
-Description of Daemon
----------------------
+Stop Application
+===============
+
+  $ kill -1 PASTER_PID
+
+  Warning: always use SIGHUP because only with this signal all processes are
+stopped correctly.
+
+Cloudooo Description
+=====================
 
 - XMLRPC + WSGI will be one bridge for easy access OpenOffice.org. This will implement one XMLRPC server into WSGI (Paster).
 
diff --git a/cloudooo/cloudooo b/cloudooo/cloudooo
deleted file mode 100755
index 7555eac..0000000
--- a/cloudooo/cloudooo
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/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
-else
-  log_success_msg()
-  {
-    echo " SUCCESS! $@"
-  }
-  log_failure_msg()
-  {
-		echo " ERROR! $@"
-  }
-fi
-# complete path of the cloudooo folder
-FOLDER=$(cd $(dirname $0); pwd -P)/
-# get the pid of the cloudooo
-CLOUDOOO_PID=$FOLDER/paster.pid
-# complete path of this script
-SELF=$FOLDER$(basename $0)
-
-case "$1" in
-
-start)
-  $PASTER_PATH serve $CONF_PATH --daemon;;
-stop)
-  kill -1 `cat $CLOUDOOO_PID`;
-  $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;;
-esac
-exit 0
-- 
2.30.9