#!/bin/sh
#
# $FreeBSD: ports/sysutils/tenshi/files/tenshi.sh.in,v 1.1 2006/04/05 19:37:00 garga Exp $
#
# PROVIDE: tenshi
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable `tenshi':
#
#tenshi_enable="YES"
#
. '/etc/rc.subr'
name='tenshi'
rcvar=`set_rcvar`
extra_commands='reload'
command='/usr/local/bin/tenshi'
command_interpreter='/usr/local/bin/perl'
pidfile='/var/run/tenshi.pid'
required_files='/usr/local/etc/tenshi.conf'
# set defaults
tenshi_enable="${tenshi_enable:-NO}"
load_rc_config "$name"
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1