05-28-2009 06:31 AM
2009-05-28 10:27:24,976 INFO [STDOUT] 10:27:24,976 User:System WARN [alfresco.util.OpenOfficeConnectionTester] No se pudo establecer la conexión a OpenOffice
05-28-2009 06:47 AM
# yum -y install openoffice.org-base openoffice.org-core openoffice.org-writer\ xorg-x11-server-Xvfb
!/bin/sh
#
# soffice
#
# chkconfig: 345 98 11
# description: Starts and stops the soffice non-interactive document transformation
# Source function library.
. /etc/rc.d/init.d/functions
XVFB=/usr/bin/Xvfb
SOFFICE=/usr/lib64/openoffice.org2.0/program/soffice.bin
SOFFICE_TMP=/tmp/
KILLER=/usr/bin/killall
case "$1" in
start)
#
# Start Soffice
#
echo -n "Starting Xvfb for SOFFICE: "
$XVFB :1 -screen 0 800x600x16 -fbdir /tmp > /dev/null 2>&1 &
sleep 3s
echo_success
echo
echo -n "Arrancando SOFFICE: "
$SOFFICE -invisible -accept="socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo \ -nofirststartwizard -headless -display :1 > /dev/null 2>&1 &
echo_success
echo
;;
stop)
#
# Stop Soffice
#
echo -n "Parando SOFFICE: "
$KILLER -q -s TERM soffice.bin
echo_success
echo
echo -n "Stopping Xvfb for SOFFICE: "
$KILLER -s TERM Xvfb
echo_success
echo
;;
*)
echo "soffice {stop|start}"
exit 1;;
esac
exit 0
05-28-2009 07:37 AM
05-28-2009 07:40 AM
05-28-2009 07:49 AM
05-28-2009 07:51 AM
05-28-2009 09:13 AM
2009-05-28 10:27:24,976 INFO [STDOUT] 10:27:24,976 User:System WARN [alfresco.util.OpenOfficeConnectionTester] No se pudo establecer la conexión a OpenOffice
05-29-2009 02:37 AM
06-01-2009 03:13 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="openOfficeStartupBootstrap" class="org.alfresco.util.exec.RuntimeExecBootstrapBean" >
<property name="startupCommands">
<list>
<ref bean="openOfficeStartupCommand" />
</list>
</property>
<property name="failOnError">
<value>false</value>
</property>
</bean>
<bean id="openOfficeStartupCommand" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandsAndArguments">
<map>
<entry key=".*">
<list>
<value>${ooo.exe}</value>
<value>-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager</value>
<value>-env:UserInstallation=file:///${ooo.user}</value>
<value>-nologo</value>
<value>-headless</value>
<value>-nofirststartwizard</value>
<value>-nocrashrep</value>
<value>-norestore</value>
</list>
</entry>
</map>
</property>
<property name="waitForCompletion">
<value>false</value>
</property>
<property name="errorCodes">
<value>2</value>
</property>
</bean>
</beans>
~
06-01-2009 04:37 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.