#!/bin/sh

# $FreeBSD: head/sysutils/tenshi/files/tenshi.in 340872 2014-01-24 00:14:07Z mat $
#
# 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=tenshi_enable

load_rc_config "$name"

tenshi_enable="${tenshi_enable:-NO}"

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'

run_rc_command "$1"
