#!/bin/sh
#
# $FreeBSD: ports/sysutils/tenshi/files/tenshi.sh,v 1.2 2006/02/20 20:47:44 dougb Exp $
#

# PROVIDE: tenshi
# REQUIRE: LOGIN
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable `tenshi':
#
#tenshi_enable="YES"
#

. '%%RC_SUBR%%'

name='tenshi'
rcvar=`set_rcvar`

extra_commands='reload'

command='%%PREFIX%%/bin/tenshi'
command_interpreter='%%PERL%%'

pidfile='/var/run/tenshi.pid'

required_files='%%PREFIX%%/etc/tenshi.conf'

# set defaults

tenshi_enable="${tenshi_enable:-NO}"

load_rc_config "$name"
run_rc_command "$1"
