#!/bin/sh
#
# $NetBSD: cherokee.sh,v 1.3 2010/07/11 12:18:55 obache Exp $
#
# PROVIDE: cherokee
# REQUIRE: DAEMON

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

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

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