#!/bin/sh
#

# PROVIDE: ihttpd
# REQUIRE: NETWORKING DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name="ihttpd"
rcvar="ihttpd_enable"

procname="./sbin/ihttpd"
ihttpd_chdir="%%PREFIX%%"
confname="${ihttpd_chdir}/etc/${name}.conf"

load_rc_config $name

pidfile="${ihttpd_chdir}/var/ihttpd.pid"
command="${ihttpd_chdir}/sbin/ihttpd_safe"
command_args=" > /dev/null 2>&1 &"

restart_cmd="echo \"Restarting ihttpd\"; ${command} -R >/dev/null 2>&1"

cd ${ihttpd_chdir}
run_rc_command "$1"
