#!/bin/sh
# $TheSupernovaDuo$
#
# PROVIDE: simplytranslate
# REQUIRE: DAEMON NETWORKING syslog
# KEYWORD: shutdown


. /etc/rc.subr

name="simplytranslate"
rcvar="simplytranslate_enable"

load_rc_config $name

: ${simplytranslate_user:="www"}
: ${simplytranslate_enable:="NO"}
: ${simplytranslate_config="/usr/local/etc/simplytranslate/simplytranslate.ini"}

pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
procname="/usr/local/bin/${name}"
simplytranslate_args="-f ${simplytranslate_config}"
command_args="-S -m 3 -s info -l daemon -p ${pidfile} /usr/bin/env ${procname} ${simplytranslate_args}"

run_rc_command "$1"
