#!/bin/sh

# $FreeBSD: head/www/thundercache/files/thundercache.in 340872 2014-01-24 00:14:07Z mat $
#
# PROVIDE: thundercache
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Remember to thundercache_enable="YES" in /etc/rc.conf
# You can also add optional flags to thundercache_flags
#
# FreeBSD Brasil LTDA <consultoria@freebsdbrasil.com.br>
#

. /etc/rc.subr

name="thundercache"
rcvar=thundercache_enable

command="/usr/local/thunder/sbin/thunder"
required_files="/usr/local/thunder/etc/thunder.conf"
command_args="-c $required_files"
pidfile="/var/run/thunder/thunder.pid"

load_rc_config $name
: ${thundercache_enable="NO"}

run_rc_command "$1"
