#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation

description="The python unogenerator module daemon"
command='/usr/bin/loffice'
command_args='--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager" --headless'
pidfile="/var/run/unogenerator.pid"
start_stop_daemon_args="-b -m --pidfile ${pidfile}"

depend() {
	use net
}

stop() {
	pkill -f "2002;urp;StarOffice.ServiceManager"
}