12-02-2008 09:26 AM
sudo -H -u alfresco /opt/openoffice.org2.4/program/soffice -headless "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nofirststartwizard &[1] 16819
[root@alfresco program]# Xlib: connection to ":1003.0" refused by server
Xlib: No protocol specified
/opt/openoffice.org2.4/program/soffice.bin X11 error: Can't open display: :1003.0
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)opt/openoffice.org2.4/program/soffice -headless "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nofirststartwizard & 12-02-2008 10:45 AM
12-15-2008 02:58 AM
12-15-2008 03:42 AM
12-16-2008 02:02 AM
#!/bin/bash
# chkconfig: 345 20 80
# description: init.d script for headless openoffice.org (2.3+ for RHEL5 32bit)
#
# processname: soffice
#
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
SOFFICE_PATH='/usr/lib64/openoffice.org/program'
SOFFICE_ARGS='-accept="socket,host=localhost,port=8100;urp" -headless'
SOFFICE_PIDFILE=/var/run/soffice.bin.pid
start_soffice() {
echo -n $"Starting OpenOffice.org"
daemon $SOFFICE_PATH/soffice.bin $SOFFICE_ARGS &
[ $? -eq 0 ] && echo_success || echo_failure
pidof soffice.bin > $SOFFICE_PIDFILE
echo
}
start() {
start_soffice
}
stop() {
echo -n $"Stopping OpenOffice"
killproc soffice.bin
echo
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
esac
root $ chkconfig –add soffice
root $ chkconfi soffice on
root $ service soffice start
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.