Creating a startup script for Openoffice in headless mode
Hello,
I have installed openoffice via "yum install openoffice.org-headless" which installed openoffice as a dependency. Openoffice should be installed, except I can't figure out how to stop or start it. Running openoffice.org3 as some tutorials state renders a "command not found" Other tutorials state I should create a .sh file in /etc/init.d/ to install openoffice as a service except the supplied file is for debian and doesn't seem to work on Centos 6. Does anyone know where I could find such a file or where I could learn how to do it myself? Thanks a lot! Arthur |
Presuming that you want to run an OOo process as a server, here's the command I use to start it for local use by unoconv on Debian Squeeze ($soffice_port is the port it should listen on, commonly 2002):
Code:
soffice -headless -accept="socket,host=127.0.0.1,port=$soffice_port;urp;" -nofirststartwizard & Code:
#-------------------------- |
Thanks for the quick reply!
I think I've finally figured it out - I hadn't installed the openoffice.org-writer and openoffice.org-draw packages. Removed everything with Code:
yum remove openoffice* Code:
yum install openoffice.org-headless openoffice.org-writer openoffice.org-draw Code:
soffice -headless -accept="socket,host=127.0.0.1,port=$soffice_port;urp;" -nofirststartwizard & Thanks a lot for your help! |
At simplest, you can add the command to /etc/rc.d/rc.local.
For a more fully featured solution there may be a /etc/init.d/skeleton file (if not, try find /etc/ -name '*skeleton*' ) to use as an example for a full boot script. |
I'll look into that. For the moment I've generated a simple startup script with webmin :D
Thanks for all your help! |
All times are GMT -5. The time now is 07:14 PM. |