#!/bin/sh
#
# $MidnightBSD: mports/www/thttpd/files/thttpd.in,v 1.1 2013/08/03 16:43:06 laffer1 Exp $

# PROVIDE: thttpd
# REQUIRE: DAEMON
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable thttpd:
#
# thttpd_enable="YES"
#

. /etc/rc.subr

name=thttpd
rcvar=thttpd_enable

command=/usr/local/sbin/thttpd

thttpd_enable=${thttpd_enable:-"NO"}
thttpd_flags=${thttpd_flags:-"-C /usr/local/etc/thttpd.conf"}

load_rc_config $name
run_rc_command "$1"
