Commit c117519c authored by Gabriel Monnerat's avatar Gabriel Monnerat

remove cloudooo script because is not used more and add in REAME how to stop...

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
parent 144cc15d
......@@ -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).
......
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment