#!/bin/sh

# PROVIDE: gogoc
# REQUIRE: NETWORK
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# gogoc_enable (bool):   Set to NO by default.
#               Set it to YES to enable gogoc.
#
# Additional configurable variables:
# gogoc_config (path):   Set to /usr/local/etc/gogoc.conf
#               by default.

. /etc/rc.subr

name="gogoc"
rcvar=gogoc_enable

command=/usr/local/bin/${name}

load_rc_config $name

: ${gogoc_enable="NO"}
: ${gogoc_config="/usr/local/etc/gogoc.conf"}

command_args="-f $gogoc_config"

run_rc_command "$1"

