#!/bin/sh
#

# PROVIDE: soffice
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable etherpad:
#
# soffice_enable="YES"
#

. /etc/rc.subr

name="soffice"
rcvar=${name}_enable

start_cmd="${name}_start"
#stop_cmd="${name}_stop"

load_rc_config $name

soffice_start()
{
        /usr/sbin/daemon -f /usr/local/bin/soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service" -nologo
}

run_rc_command "$1"