June 22, 2017 Webby

Creating an OpenOffice.org Service on Unix-like systems

Creating a SysV-style init script for starting OpenOffice.org is not difficult but the details depend on your particular OS flavour/distribution.

The tricky part is that OpenOffice.org requires an X server to work. On a headless server, you can use Xvfb as a dummy display for OpenOffice.org.

However since OpenOffice.org 2.3 an X server server is no longer needed; it is now possible to start OpenOffice.org in “true” headless mode simply by making sure the DISPLAY environment variable is not defined:

$ unset DISPLAY
$ soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard