Somewhat OT: OpenOffice.org Headless issues as non-root user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

I've installed recently OpenOffice.org 3.1 on Centos 5.3. I use OOo in
headless mode. I have no problem when running as root, but I'd prefer
run it as non-root user (oooserver user). When I run the script in
debug mode this is the output:

sh -x    /tmp/ooo-headless-nonroot start
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/profile.d/lang.sh
+++ sourced=0
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /etc/sysconfig/i18n ']'
+++ . /etc/sysconfig/i18n
++++ LANG=en_US.UTF-8
++++ SYSFONT=latarcyrheb-sun16
+++ sourced=1
+++ for langfile in /etc/sysconfig/i18n '$HOME/.i18n'
+++ '[' -f /root/.i18n ']'
+++ '[' -n '' ']'
+++ '[' 1 = 1 ']'
+++ '[' -n en_US.UTF-8 ']'
+++ export LANG
+++ '[' -n '' ']'
+++ unset LC_ADDRESS
+++ '[' -n '' ']'
+++ unset LC_CTYPE
+++ '[' -n '' ']'
+++ unset LC_COLLATE
+++ '[' -n '' ']'
+++ unset LC_IDENTIFICATION
+++ '[' -n '' ']'
+++ unset LC_MEASUREMENT
+++ '[' -n '' ']'
+++ unset LC_MESSAGES
+++ '[' -n '' ']'
+++ unset LC_MONETARY
+++ '[' -n '' ']'
+++ unset LC_NAME
+++ '[' -n '' ']'
+++ unset LC_NUMERIC
+++ '[' -n '' ']'
+++ unset LC_PAPER
+++ '[' -n '' ']'
+++ unset LC_TELEPHONE
+++ '[' -n '' ']'
+++ unset LC_TIME
+++ '[' -n '' ']'
+++ unset LC_ALL
+++ '[' -n '' ']'
+++ unset LANGUAGE
+++ '[' -n '' ']'
+++ unset LINGUAS
+++ '[' -n '' ']'
+++ unset _XKB_CHARSET
++++ /sbin/consoletype
+++ consoletype=pty
+++ '[' -n '' ']'
+++ '[' -n '' ']'
+++ '[' -n en_US.UTF-8 ']'
+++ case $LANG in
+++ '[' xterm = linux ']'
+++ unset SYSFONTACM SYSFONT
+++ unset sourced
+++ unset langfile
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL='echo -en \033[60G'
+++ SETCOLOR_SUCCESS='echo -en \033[0;32m'
+++ SETCOLOR_FAILURE='echo -en \033[0;31m'
+++ SETCOLOR_WARNING='echo -en \033[0;33m'
+++ SETCOLOR_NORMAL='echo -en \033[0;39m'
+++ LOGLEVEL=3
+++ PROMPT=yes
+++ AUTOSWAP=no
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
++ __sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
+ ooffice=/opt/openoffice.org3/program/soffice.bin
+ prog='OpenOffice.org Headless'
+ pidfile=/var/run/ooo-headless/ooo-headless.pid
+ lockfile=/var/lock/subsys/ooo-headless
+ OPTIONS='-headless -nofirststartwizard -nologo -norestore -invisible
-accept=socket,host=localhost,port=2002;urp;StarOffice.Service'
+ RETVAL=0
+ case "$1" in
+ start
+ echo -n 'Starting OpenOffice.org Headless: '
Starting OpenOffice.org Headless: + su oooserver '-c
/opt/openoffice.org3/program/soffice.bin -headless -nofirststartwizard
-nologo -norestore -invisible
-accept=socket,host=localhost,port=2002;urp;StarOffice.Service
>/dev/null 2>&1 &'

End oif Output

You can see the ps output too:

root     19432  0.0  0.2   4908  1228 pts/0    S+   10:46   0:00  |
     \_ su oooserver -c /opt/openoffice.org3/program/soffice.bin
-headless -nofirststartwizard -nologo -norestore -invisible
-accept=socket,host=localhost,port=2002;urp;StarOffice.Service
>/dev/null 2>&1 &
500      19433  0.0  0.2   4484  1040 ?        Ss   10:46   0:00  |
         \_ bash -c  /opt/openoffice.org3/program/soffice.bin
-headless -nofirststartwizard -nologo -norestore -invisible
-accept=socket,host=localhost,port=2002;urp;StarOffice.Service
>/dev/null 2>&1 &
500      19434  6.4  5.0 100492 22520 ?        Sl   10:46   0:00  |
             \_ /opt/openoffice.org3/program/soffice.bin -headless
-nofirststartwizard -nologo -norestore -invisible
-accept=socket,host=localhost,port=2002


Problem is that it fails at listening on port 2002 and it never
creates  pid file:

ls -ld /var/run/ooo-headless/
drwxr-xr-x 2 oooserver oooserver 4096 Jul 30 15:07 /var/run/ooo-headless/

Please could you help me to root as non-root user?

Thanks in advance!

-- 
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux