ulif.openoffice.oooctl – A Daemon Controlling an OO.o-Server

Start/stop a locally installed OpenOffice.org server instance.

It runs unoconv -l and monitors status.

This script is installed as executable script oooctl.

ulif.openoffice.oooctl.main(argv=sys.argv)

Main script to start/stop an OOo server.

This function is called when calling bin/oooctl.

ulif.openoffice.oooctl.check_port(host, port)

Returns True if the port is open, False otherwise.

This function is non-blocking.

ulif.openoffice.oooctl.daemonize(stdout='/dev/null', stderr=None, stdin='/dev/null', pidfile=None, startmsg='started with pid %s')

Fork and daemonize a running process.

ulif.openoffice.oooctl.start(binarypath, foreground=False)

Start an instance of OpenOffice.org server on port 2002.

ulif.openoffice.oooctl.startstop(stdout='/dev/null', stderr=None, stdin='/dev/null', pidfile='pid.txt', startmsg='started with pid %s', action='start')

Start/stop a process.