#!/bin/sh
#
# $NetBSD: thttpd.sh,v 1.10 2004/02/22 18:34:54 jlam Exp $
#
# PROVIDE: thttpd
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="thttpd"
rcvar=$name
command="/usr/pkg/sbin/${name}"
command_args="-C /usr/pkg/etc/${name}.conf"
required_files="/usr/pkg/etc/${name}.conf"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${thttpd_flags} ${command_args}
fi
